diff options
author | bd <bdunahu@operationnull.com> | 2025-03-27 20:30:18 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-27 20:30:18 -0400 |
commit | eaa87e9fcd90c00d6261cbdb854efb7a09467f1d (patch) | |
tree | e7f4cc05a30e5589f8bd70ddc49f420369adbb3c /src/sim/controller.cc | |
parent | 8d37d15ebd1221e3b1698abb3b051d9d0c044c93 (diff) |
Instr, InstrDTO gets/sets, other structures required for decode
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 6d46dc4..45aa9a0 100644 --- a/src/sim/controller.cc +++ b/src/sim/controller.cc @@ -10,6 +10,8 @@ Controller::Controller(Stage *stage, Storage *storage, bool is_pipelined) this->is_pipelined = is_pipelined; this->pc = 0x0; this->gprs = {0}; + // grant side-door access + this->id = SIDE; } void Controller::run_for(int number) @@ -30,7 +32,7 @@ int Controller::get_pc() { return this->pc; } Response Controller::advance(InstrDTO &i) { Response r; - + r = this->next->advance(i); ++this->clock_cycle; return r; |