diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-03-30 19:34:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-30 19:34:17 -0400 |
commit | 12a9e93f913c0057f2ef32f5894931c8b4bd3a85 (patch) | |
tree | 88669ed2be55b4f455ef4ac56263a01dd5f70a40 /src/sim/if.cc | |
parent | eedf9686eb60f2008e7766cc9a5d3e037b9dae64 (diff) | |
parent | 36dabe6183af98b2e3f6d0316436dc3affc3d986 (diff) |
Merge pull request #41 from bdunahu/bdunahu
Add mock stage, proper decode tests
changes look good
Diffstat (limited to 'src/sim/if.cc')
-rw-r--r-- | src/sim/if.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/if.cc b/src/sim/if.cc index 43132ed..77a2704 100644 --- a/src/sim/if.cc +++ b/src/sim/if.cc @@ -18,6 +18,7 @@ InstrDTO *IF::advance(Response p) r = new InstrDTO(*this->curr_instr); delete curr_instr; curr_instr = nullptr; + this->status = STALLED; } return r; @@ -34,7 +35,6 @@ void IF::advance_helper() this->status = r; this->curr_instr = new InstrDTO(); this->curr_instr->set_instr_bits(bits); - } else - this->status = STALLED; + } } } |