[PATCH] powerpc: emulate power5 popcntb instruction
Arnd Bergmann
arnd at arndb.de
Sun Aug 20 06:19:02 EST 2006
On Saturday 19 August 2006 21:10, segher at gate.crashing.org wrote:
> > Is that the right check? The other similar traps check against a
> > mask of 0x7c0007fe.
>
> I hope you mean 0xfc0007fe?
>
No, the code in question is
#define INST_MFSPR_PVR········0x7c1f42a6
#define INST_MFSPR_PVR_MASK····0xfc1fffff
#define INST_DCBA·············0x7c0005ec
#define INST_DCBA_MASK········0x7c0007fe
#define INST_MCRXR············0x7c000400
#define INST_MCRXR_MASK·······0x7c0007fe
#define INST_STRING···········0x7c00042a
#define INST_STRING_MASK·······0x7c0007fe
#define INST_STRING_GEN_MASK···0x7c00067e
#define INST_LSWI·············0x7c0004aa
#define INST_LSWX·············0x7c00042a
#define INST_STSWI············0x7c0005aa
#define INST_STSWX············0x7c00052a
What does the MSB do in our instructions?
Arnd <><
More information about the Linuxppc-dev
mailing list