MIPS: kernel: Prepare the JR instruction for emulation on MIPS R6
[linux-2.6-microblaze.git] / arch / mips / math-emu / cp1emu.c
index 9dfcd7f..9bf8211 100644 (file)
@@ -448,6 +448,9 @@ static int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
                                dec_insn.next_pc_inc;
                        /* Fall through */
                case jr_op:
+                       /* For R6, JR already emulated in jalr_op */
+                       if (NO_R6EMU && insn.r_format.opcode == jr_op)
+                               break;
                        *contpc = regs->regs[insn.r_format.rs];
                        return 1;
                }