summaryrefslogtreecommitdiff
path: root/src/if.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/if.cc')
-rw-r--r--src/if.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if.cc b/src/if.cc
index 62a105c..5f07ee2 100644
--- a/src/if.cc
+++ b/src/if.cc
@@ -25,7 +25,7 @@ InstrDTO *IF::advance(Response p)
InstrDTO *r = nullptr;
this->advance_helper();
- if (this->curr_instr != nullptr && p == WAIT) {
+ if (this->curr_instr != nullptr && p == READY) {
// don't increment PC if the PC was just set by wb
if (this->curr_instr->is_squashed != 1)
++this->pc;