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/if.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sim/if.cc') 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); -- cgit v1.2.3