diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-04-01 21:58:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-01 21:58:07 -0400 |
commit | 24f0bd8af57381ab3112b5774d4ad23ac80f0718 (patch) | |
tree | 248c770c6e1a51756c5a8fa904ec4873fb66644e /src/sim | |
parent | 6f536bd1bd1abab307c79d688c993e930cf7c250 (diff) | |
parent | cc2781682a47dc331f7bbcb5d7842db5197d29fc (diff) |
Merge pull request #47 from bdunahu/dev-sid
GUI and controller on separate threads
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/controller.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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<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) |