Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: src/mips/simulator-mips.cc

Issue 1562473002: MIPS: Remove JIC/JIALC forbidden slot checks in simulator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips/simulator-mips.cc
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc
index 79706f998fc0341f23165c58a6cecb9cd26d55a4..d4884474496e418cc8072c74f10a2b0515930d98 100644
--- a/src/mips/simulator-mips.cc
+++ b/src/mips/simulator-mips.cc
@@ -4090,7 +4090,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;
@@ -4098,9 +4097,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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698