summaryrefslogtreecommitdiff
path: root/src/sim/controller.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-01 22:07:04 -0400
committerbd <bdunahu@operationnull.com>2025-04-01 22:07:04 -0400
commit05a873027d01cdf6318d67b77a4eaad120b05527 (patch)
tree418621dd347ee8daeaebe7ce83316f21fd736e56 /src/sim/controller.cc
parentd4e3a7a3b1cff6885978093d5cc125e38cc397b3 (diff)
parent24f0bd8af57381ab3112b5774d4ad23ac80f0718 (diff)
Merge remote-tracking branch 'origin/master' into bdunahu
Diffstat (limited to 'src/sim/controller.cc')
-rw-r--r--src/sim/controller.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sim/controller.cc b/src/sim/controller.cc
index 0b5c4d0..cf8d02d 100644
--- a/src/sim/controller.cc
+++ b/src/sim/controller.cc
@@ -27,6 +27,10 @@ int Controller::get_clock_cycle() { return this->clock_cycle; }
std::array<int, GPR_NUM> Controller::get_gprs() { return this->gprs; }
+void Controller::set_gprs(int index, int value) { this->gprs[index] = value; }
+
+void Controller::set_pipelined(bool value) { this->is_pipelined = value; }
+
int Controller::get_pc() { return this->pc; }
InstrDTO *Controller::advance(Response p)