1
0

MIPS: Emulate the new MIPS R6 BEQZC and JIC instructions

MIPS R6 uses the <R6 ldc2 opcode for the new BEQZC and JIC instructions

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Este cometimento está contido em:
Markos Chandras
2014-11-27 09:32:25 +00:00
ascendente 84fef63012
cometimento 69b9a2fd05
3 ficheiros modificados com 16 adições e 1 eliminações

Ver ficheiro

@@ -799,6 +799,14 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
epc += 4 + (insn.i_format.simmediate << 2);
regs->cp0_epc = epc;
break;
case beqzcjic_op:
if (!cpu_has_mips_r6) {
ret = -SIGILL;
break;
}
/* Compact branch: BEQZC || JIC */
regs->cp0_epc += 8;
break;
#endif
case cbcond0_op:
case cbcond1_op: