aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2014-11-25 10:54:14 -0500
committerMarkos Chandras <markos.chandras@imgtec.com>2015-02-17 10:37:31 -0500
commit5f9f41c474befb4ebbc40b27f65bb7d649241581 (patch)
tree26108ad80ca556ac12466aac3f03fc29d0a8a4ca /arch/mips/math-emu
parentb5ad2c21934951bbf6aadd8adbdd9889baad0ac0 (diff)
MIPS: kernel: Prepare the JR instruction for emulation on MIPS R6
The MIPS R6 JR instruction is an alias to the JALR one, so it may need emulation for non-R6 userlands. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Diffstat (limited to 'arch/mips/math-emu')
-rw-r--r--arch/mips/math-emu/cp1emu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/math-emu/cp1emu.c b/arch/mips/math-emu/cp1emu.c
index 9dfcd7fc1bc3..9bf82117b4f2 100644
--- a/arch/mips/math-emu/cp1emu.c
+++ b/arch/mips/math-emu/cp1emu.c
@@ -448,6 +448,9 @@ static int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
448 dec_insn.next_pc_inc; 448 dec_insn.next_pc_inc;
449 /* Fall through */ 449 /* Fall through */
450 case jr_op: 450 case jr_op:
451 /* For R6, JR already emulated in jalr_op */
452 if (NO_R6EMU && insn.r_format.opcode == jr_op)
453 break;
451 *contpc = regs->regs[insn.r_format.rs]; 454 *contpc = regs->regs[insn.r_format.rs];
452 return 1; 455 return 1;
453 } 456 }