[PATCH] powerpc: emulate power5 popcntb instruction

Arnd Bergmann arnd at arndb.de
Sat Aug 19 05:05:44 EST 2006


On Friday 18 August 2006 20:11, Will Schmidt wrote:
> +#define INST_POPCNTB           0x7c0000f4
> +

> +       /* Emulate the popcntb (Population Count Bytes) instruction. */
> +       if ((instword & INST_POPCNTB) == INST_POPCNTB) {
> +               return emulate_popcntb_inst(regs, instword);
> +       }
> +

Is that the right check? The other similar traps check against a
mask of 0x7c0007fe.

	Arnd <><



More information about the Linuxppc-dev mailing list