[PATCH] powerpc: emulate power5 popcntb instruction

segher at gate.crashing.org segher at gate.crashing.org
Sun Aug 20 05:10:14 EST 2006


>> +#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.

I hope you mean 0xfc0007fe?


Segher






More information about the Linuxppc-dev mailing list