summaryrefslogtreecommitdiff
path: root/src/sim/controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/controller.cc')
-rw-r--r--src/sim/controller.cc4
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;
}