MIPS R6 uses the <R6 ldc2 opcode for the new BEQZC and JIC instructions Signed-off-by: Markos Chandras <markos.chandras@xxxxxxxxxx> --- arch/mips/kernel/branch.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/mips/kernel/branch.c b/arch/mips/kernel/branch.c index 426f876403d0..4473c23cacf2 100644 --- a/arch/mips/kernel/branch.c +++ b/arch/mips/kernel/branch.c @@ -802,6 +802,15 @@ int __compute_return_epc_for_insn(struct pt_regs *regs, epc = epc + 4 + (insn.i_format.simmediate << 2); regs->cp0_epc = epc; break; + case ldc2_or_bzcjic_op: + /* Compact branch: BEQZC || JIC */ + if (insn.i_format.rs) /* BEQZC */ + epc = epc + 8; + else /* JIC */ + epc = regs->regs[insn.i_format.rt] + + insn.i_format.simmediate; + regs->cp0_epc = epc; + break; #endif } -- 2.2.0