From 68324683cde10c636a4a602644f3e64d24b0e412 Mon Sep 17 00:00:00 2001 From: bd Date: Tue, 1 Apr 2025 20:36:31 -0400 Subject: Lots of fixes and tests --- src/sim/stage.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/sim/stage.cc') diff --git a/src/sim/stage.cc b/src/sim/stage.cc index b10a206..bd0ff6b 100644 --- a/src/sim/stage.cc +++ b/src/sim/stage.cc @@ -95,8 +95,11 @@ bool Stage::is_checked_out(signed int r) void Stage::squash() { - this->curr_instr->set_mnemonic(NOP); - this->status = OK; + if (curr_instr) { + std::cout << "!!!" << std::endl; + this->curr_instr->set_mnemonic(NOP); + this->status = OK; + } if (this->next) { this->next->squash(); } -- cgit v1.2.3