diff options
author | bd <bdunaisky@umass.edu> | 2025-04-18 04:10:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-18 04:10:49 +0000 |
commit | dbf7e900336214041da8880d6986d59126c35a72 (patch) | |
tree | 5bc5c848ca6b5326480c7b0760087db79c8653f1 /src/sim/stage.cc | |
parent | 480181957b3f3dbcf7731023504c2cacc8d181ea (diff) | |
parent | 360e6cbffb3d2c1279ae7c3a02c2850f5523eeb2 (diff) |
Merge pull request #55 from bdunahu/dev-sid
Allow dynamic program loading (by Sid)
Diffstat (limited to 'src/sim/stage.cc')
-rw-r--r-- | src/sim/stage.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sim/stage.cc b/src/sim/stage.cc index 9528e4b..d65ca87 100644 --- a/src/sim/stage.cc +++ b/src/sim/stage.cc @@ -34,6 +34,8 @@ InstrDTO *Stage::advance(Response p) // for (long unsigned int i = 0; i < this->checked_out.size(); ++i) // std::cout << this->checked_out[i] << " "; // std::cout << std::endl; + if (this->curr_instr && this->curr_instr->is_squashed() == 1) + this->status = OK; if (this->curr_instr && this->status != OK) { this->advance_helper(); } @@ -108,7 +110,7 @@ bool Stage::is_checked_out(signed int r) void Stage::squash() { if (curr_instr) { - this->curr_instr->set_mnemonic(NOP); + this->curr_instr->squash(); this->status = OK; } if (this->next) { |