diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-03-30 22:35:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-30 22:35:06 -0400 |
commit | 44cb9d396b909c84ef7ad3338e0a12cfcc082748 (patch) | |
tree | b080d1ad4989ab5f5848d9571b01c0fc505b136a /src/sim/if.cc | |
parent | 52e1ca72925444b8e5a9bb5b240a4063a4d7b958 (diff) | |
parent | 723d582d1108975caf071a76c1556a01fb0553d1 (diff) |
Merge pull request #43 from bdunahu/bdunahu
Sanity check for pipeline up to exe
Diffstat (limited to 'src/sim/if.cc')
-rw-r--r-- | src/sim/if.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/if.cc b/src/sim/if.cc index 77a2704..fa8f6c2 100644 --- a/src/sim/if.cc +++ b/src/sim/if.cc @@ -11,7 +11,7 @@ InstrDTO *IF::advance(Response p) InstrDTO *r = nullptr; this->advance_helper(); - if (this->status == OK && p == OK) { + if (this->curr_instr != nullptr && p == OK) { // mutual consent ++this->pc; this->curr_instr->set_time_of(this->id, this->clock_cycle); |