diff options
author | bd <bdunahu@operationnull.com> | 2025-04-01 20:36:31 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-01 20:36:31 -0400 |
commit | 68324683cde10c636a4a602644f3e64d24b0e412 (patch) | |
tree | b87195d06940fbb526785a5e4c59b76780d00b22 /src/sim/stage.cc | |
parent | 25ce77db5f0dbfe6064eb0553591f1b956bad24a (diff) |
Lots of fixes and tests
Diffstat (limited to 'src/sim/stage.cc')
-rw-r--r-- | src/sim/stage.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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(); } |