[patch] powerpc: remove do-nothing cpu setup routines

Segher Boessenkool segher at kernel.crashing.org
Tue May 9 10:47:20 EST 2006


> 	lwz	r5,CPU_SPEC_SETUP(r4)
> 	cmpi	0,r5,0
> 	add	r5,r5,r3
> 	beqlr
> 	mtctr	r5
> 	bctr
>
> But, could this also be:
>
> 	lwz	r5,CPU_SPEC_SETUP(r4)
> 	cmpi	0,r5,0
> 	beqlr
> 	add	r5,r5,r3
> 	mtctr	r5
> 	bctr

Sure.  Except it should be  cmpwi cr0,r5,0  or  cmpwi r5,0 --
cmpi with three arguments is not valid PowerPC assembler code.


Segher




More information about the Linuxppc-dev mailing list