Subject: -mcpu=21264 and illegal instructions [was Re: Port benchmarks]
To: None <port-alpha@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-alpha
Date: 04/03/2000 12:04:46
On Sun, Apr 02, 2000 at 01:26:49PM -0700, Jason R Thorpe wrote:
>  > (gdb) l *0xfffffc000039b6fc
>  > 0xfffffc000039b6fc is in pool_init (../../../../kern/subr_pool.c:439).
>  > 434             pp->pr_minitems = 0;
>  > 435             pp->pr_minpages = 0;
>  > 436             pp->pr_maxpages = UINT_MAX;
>  > 437             pp->pr_roflags = flags;
>  > 438             pp->pr_flags = 0;
>  > 439             pp->pr_size = ALIGN(size);
> 
> Hm... Disassemble that, please :-)

Here it is:
0xfffffc000039b6dc <pool_init+188>:     addq    s0,0x10,t0
0xfffffc000039b6e0 <pool_init+192>:     stq     t0,24(s0)
0xfffffc000039b6e4 <pool_init+196>:     stq     zero,32(s0)
0xfffffc000039b6e8 <pool_init+200>:     zapnot  t7,0xf,t5
0xfffffc000039b6ec <pool_init+204>:     addq    a1,0x7,t2
0xfffffc000039b6f0 <pool_init+208>:     lda     t6,-1(zero)
0xfffffc000039b6f4 <pool_init+212>:     negq    t7,t4
0xfffffc000039b6f8 <pool_init+216>:     cttz    t5,t0
0xfffffc000039b6fc <pool_init+220>:     andnot  t2,0x7,t2
0xfffffc000039b700 <pool_init+224>:     srl     t7,0x4,t3
0xfffffc000039b704 <pool_init+228>:     stq     a5,128(s0)
0xfffffc000039b708 <pool_init+232>:     mov     t2,t1

Looks like the 'cttz' is here again.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--