summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/traps.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-08-06 18:01:47 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-08-14 07:33:35 +0200
commit4288e343fb63cd74b35bf68c5d83551f867dba56 (patch)
tree63f5861a108fae0a4c9a483cd88356cd99ffe3ec /arch/powerpc/kernel/traps.c
parentpowerpc: Fix little endian lppaca, slb_shadow and dtl_entry (diff)
downloadlinux-4288e343fb63cd74b35bf68c5d83551f867dba56.tar.xz
linux-4288e343fb63cd74b35bf68c5d83551f867dba56.zip
powerpc: Emulate instructions in little endian mode
Alistair noticed we got a SIGILL on userspace mfpvr instructions. Remove the little endian check in the emulation code, it is probably there to protect against the old pseudo little endian implementations but doesn't make sense for real little endian. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/traps.c')
-rw-r--r--arch/powerpc/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
index e6fac2102b06..bdf2dd141598 100644
--- a/arch/powerpc/kernel/traps.c
+++ b/arch/powerpc/kernel/traps.c
@@ -967,7 +967,7 @@ static int emulate_instruction(struct pt_regs *regs)
u32 instword;
u32 rd;
- if (!user_mode(regs) || (regs->msr & MSR_LE))
+ if (!user_mode(regs))
return -EINVAL;
CHECK_FULL_REGS(regs);