diff options
author | bd <bdunahu@operationnull.com> | 2025-04-01 00:49:52 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-01 00:49:52 -0400 |
commit | 6579f7272905d1e25b43ef051da6c2180e60ca2b (patch) | |
tree | a4b217aa56126f7d05304ab93f6c36b66fd6b694 /src/sim/controller.cc | |
parent | a4e0e5ff6208205f6ebd980f9ed1eca91dcc4311 (diff) |
Ensure all stages only do work if they are not 'OK'
Diffstat (limited to 'src/sim/controller.cc')
-rw-r--r-- | src/sim/controller.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sim/controller.cc b/src/sim/controller.cc index 89ff4e7..293ee73 100644 --- a/src/sim/controller.cc +++ b/src/sim/controller.cc @@ -9,6 +9,7 @@ Controller::Controller(Stage *stage, Storage *storage, bool is_pipelined) this->storage = storage; this->is_pipelined = is_pipelined; this->pc = 0x0; + this->checked_out = {}; this->gprs = {0}; // grant side-door access this->id = SIDE; @@ -36,6 +37,7 @@ InstrDTO *Controller::advance(Response p) return r; } -void Controller::advance_helper() { +void Controller::advance_helper() +{ // TODO: check halt condition and call UI to refresh } |