]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Correct masks used in emulating some instructions
authorPaul Mackerras <paulus@samba.org>
Wed, 23 Aug 2006 06:58:39 +0000 (16:58 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 23 Aug 2006 06:58:39 +0000 (16:58 +1000)
commitd6d6ae9814feb946a606b02747e2b50cac8dfa3e
tree4402e8dc8fa204c0484fe0741eb09710f2be5bab
parent9d844b4fe89699c1d483064c146a377011eb4738
[POWERPC] Correct masks used in emulating some instructions

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: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/traps.c