From 723d582d1108975caf071a76c1556a01fb0553d1 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 30 Mar 2025 22:00:28 -0400 Subject: Sanity check for pipeline up to exe --- src/sim/stage.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sim/stage.cc') diff --git a/src/sim/stage.cc b/src/sim/stage.cc index 2c03741..5b81e4c 100644 --- a/src/sim/stage.cc +++ b/src/sim/stage.cc @@ -7,7 +7,7 @@ Stage::Stage(Stage *next) { this->next = next; this->curr_instr = nullptr; - this->status = STALLED; + this->status = OK; this->checked_out = {}; } @@ -35,7 +35,7 @@ InstrDTO *Stage::advance(Response p) Response n; this->advance_helper(); - if (this->status == OK && p == OK) { + if (this->curr_instr != nullptr && p == OK) { // mutual consent this->curr_instr->set_time_of(this->id, this->clock_cycle); r = new InstrDTO(*this->curr_instr); -- cgit v1.2.3