Commit 718a554d authored by Miran.Karic's avatar Miran.Karic Committed by Commit bot

MIPS: Remove JIC/JIALC forbidden slot checks in simulator

JIC and JIALC instructions do not have a forbidden slot so their
simulator implementation should not call CheckForbiddenSlot function.

BUG=

Review URL: https://codereview.chromium.org/1562473002

Cr-Commit-Position: refs/heads/master@{#33130}
parent 5fcfe05a
......@@ -4100,7 +4100,6 @@ void Simulator::DecodeTypeImmediate(Instruction* instr) {
if (rs_reg != 0) { // BEQZC
BranchCompactHelper(rs == 0, 21);
} else { // JIC
CheckForbiddenSlot(get_pc());
next_pc = rt + imm16;
}
break;
......@@ -4108,9 +4107,7 @@ void Simulator::DecodeTypeImmediate(Instruction* instr) {
if (rs_reg != 0) { // BNEZC
BranchCompactHelper(rs != 0, 21);
} else { // JIALC
int32_t current_pc = get_pc();
CheckForbiddenSlot(current_pc);
set_register(31, current_pc + Instruction::kInstrSize);
set_register(31, get_pc() + Instruction::kInstrSize);
next_pc = rt + imm16;
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment