• Paul Mackerras's avatar
    [POWERPC] Correct masks used in emulating some instructions · 87589f08
    Paul Mackerras authored
    When we get an illegal instruction exception, we check to see whether
    the instruction is one that we emulate for the user program.  Some of
    the masks we use in checking whether the offending instruction is one
    we care about didn't have the top bit set, which is the MSB of the
    major opcode.  Thus some undefined opcodes could get emulated as other
    (defined but unimplemented) instructions.  This corrects the masks.
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    87589f08
traps.c 27.9 KB