MIPS R6 removed the BLTZL instruction so do not try to emulate it if the R2-to-R6 emulator is not present. Signed-off-by: Markos Chandras <markos.chandras@xxxxxxxxxx> --- arch/mips/kernel/branch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/kernel/branch.c b/arch/mips/kernel/branch.c index 3df013ef7622..964ee68dcfe6 100644 --- a/arch/mips/kernel/branch.c +++ b/arch/mips/kernel/branch.c @@ -439,6 +439,11 @@ int __compute_return_epc_for_insn(struct pt_regs *regs, switch (insn.i_format.rt) { case bltz_op: case bltzl_op: + if (NO_R6EMU && insn.i_format.rt == bltzl_op) { + ret = -SIGILL; + /* not emulating the branch likely for R6 */ + break; + } if ((long)regs->regs[insn.i_format.rs] < 0) { epc = epc + 4 + (insn.i_format.simmediate << 2); if (insn.i_format.rt == bltzl_op) -- 2.2.0