diff options
author | bd <bdunahu@operationnull.com> | 2025-03-29 12:58:14 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-29 12:58:14 -0400 |
commit | ac0ae7206491a42cdba70560b0db41cfc8c7f642 (patch) | |
tree | 454c592fe2dec39f435225957a8b93af84c0c756 /src/sim/controller.cc | |
parent | 9793bf119cc6314e264bdfc9e98bc27c81db0adb (diff) |
Add parameter to Stage::advance so status can transfer down the pipe
Diffstat (limited to 'src/sim/controller.cc')
-rw-r--r-- | src/sim/controller.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sim/controller.cc b/src/sim/controller.cc index 45aa9a0..833d900 100644 --- a/src/sim/controller.cc +++ b/src/sim/controller.cc @@ -19,7 +19,7 @@ void Controller::run_for(int number) InstrDTO instr; int i; for (i = 0; i < number; ++i) { - this->advance(instr); + this->advance(instr, OK); } } @@ -29,11 +29,11 @@ std::array<int, GPR_NUM> Controller::get_gprs() { return this->gprs; } int Controller::get_pc() { return this->pc; } -Response Controller::advance(InstrDTO &i) +Response Controller::advance(InstrDTO &i, Response p) { Response r; - r = this->next->advance(i); + r = this->next->advance(i, p); ++this->clock_cycle; return r; } |