提交 4288e343 编写于 作者: A Anton Blanchard 提交者: Benjamin Herrenschmidt

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: NAnton Blanchard <anton@samba.org>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 7ffcf8ec
...@@ -967,7 +967,7 @@ static int emulate_instruction(struct pt_regs *regs) ...@@ -967,7 +967,7 @@ static int emulate_instruction(struct pt_regs *regs)
u32 instword; u32 instword;
u32 rd; u32 rd;
if (!user_mode(regs) || (regs->msr & MSR_LE)) if (!user_mode(regs))
return -EINVAL; return -EINVAL;
CHECK_FULL_REGS(regs); CHECK_FULL_REGS(regs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册