From 8c46ba4f216aec9f512cd398317f891be9b07e84 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 30 Mar 2025 14:28:45 -0400 Subject: Add mock stage, proper decode tests --- src/sim/if.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sim/if.cc') 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; + } } } -- cgit v1.2.3