diff options
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(); } |