From cc2781682a47dc331f7bbcb5d7842db5197d29fc Mon Sep 17 00:00:00 2001 From: Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> Date: Tue, 1 Apr 2025 21:54:38 -0400 Subject: GUI and controller on separate threads --- src/sim/controller.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/sim/controller.cc b/src/sim/controller.cc index 89ff4e7..7e24b3d 100644 --- a/src/sim/controller.cc +++ b/src/sim/controller.cc @@ -26,6 +26,10 @@ int Controller::get_clock_cycle() { return this->clock_cycle; } std::array 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) -- cgit v1.2.3