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 --- inc/stage.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'inc/stage.h') diff --git a/inc/stage.h b/inc/stage.h index ac810a9..04de475 100644 --- a/inc/stage.h +++ b/inc/stage.h @@ -4,6 +4,7 @@ #include "instrDTO.h" #include "response.h" #include "storage.h" +#include "accessor.h" #include class Stage @@ -26,14 +27,18 @@ class Stage virtual Response advance(InstrDTO &i) = 0; protected: + /** + * The name of the pipeline stage. + */ + Accessor id; /** * The shared pool of general-purpose integer registers. */ - static std::array gprs; + static std::array gprs; /** * The address of the currently executing instruction. */ - static int pc; + static unsigned int pc; /** * A pointer to the next stage in the pipeline. */ -- cgit v1.2.3