diff options
author | bd <bdunahu@operationnull.com> | 2025-03-29 17:11:17 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-29 17:11:17 -0400 |
commit | d21a1a9caa1f1791343a5376121936e552b1124c (patch) | |
tree | df28c01f6d01603e5408bc1b1b111a66adafbff7 /src/sim/controller.cc | |
parent | ac0ae7206491a42cdba70560b0db41cfc8c7f642 (diff) |
Fetch stage properly holds objects until parent is ready
Diffstat (limited to 'src/sim/controller.cc')
-rw-r--r-- | src/sim/controller.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/controller.cc b/src/sim/controller.cc index 833d900..17937eb 100644 --- a/src/sim/controller.cc +++ b/src/sim/controller.cc @@ -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 p) +Response Controller::advance(InstrDTO &next_instr, Response p) { Response r; - r = this->next->advance(i, p); + r = this->next->advance(next_instr, p); ++this->clock_cycle; return r; } |