From eaa87e9fcd90c00d6261cbdb854efb7a09467f1d Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 27 Mar 2025 20:30:18 -0400 Subject: Instr, InstrDTO gets/sets, other structures required for decode --- src/sim/controller.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sim/controller.cc') 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; -- cgit v1.2.3