From: Anton Blanchard Date: Tue, 6 Aug 2013 16:01:47 +0000 (+1000) Subject: powerpc: Emulate instructions in little endian mode X-Git-Tag: upstream/snapshot3+hdmi~4413^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4288e343fb63cd74b35bf68c5d83551f867dba56;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index e6fac21..bdf2dd1 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);