Question about powerpc branch instructions

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Aug 7 18:52:16 EST 2009


On Fri, 2009-08-07 at 17:47 +0900, HongWoo Lee wrote:

> #1: Is there any special reason to concatenate 0b00 ?  Why 0b00 ??

Because instructions have to be aligned on 4 bytes boundaries ?

> #2: Is b similar to the jmp in x86 ? and bl is similar to the call in x86 ?

I'm not totally familiar with x86 but I "sounds" like it, though of
course they can be (ab)used in some more subtle ways.

Cheers,
Ben.

> Thanks in advance.
> 
> HongWoo.
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev



More information about the Linuxppc-dev mailing list