summaryrefslogtreecommitdiff
path: root/inc/stage.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-25 21:12:58 -0400
committerbd <bdunahu@operationnull.com>2025-04-25 21:12:58 -0400
commita3528b83dd10fa9cdf7ef5635f615c1b295f3f4c (patch)
treed4b3836a433dcb4e5a9615a8a1477b2901358451 /inc/stage.h
parent9ef2928aefd0983c7b3b04023c0b958b86dd77ff (diff)
Pass full DTO to GUI
Diffstat (limited to 'inc/stage.h')
-rw-r--r--inc/stage.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/inc/stage.h b/inc/stage.h
index 7dcb7b4..16f1235 100644
--- a/inc/stage.h
+++ b/inc/stage.h
@@ -53,8 +53,14 @@ class Stage
* Must set the status to READY when the current instruction is evicted..
*/
virtual InstrDTO *advance(Response p);
-
- virtual std::vector<int> stage_info();
+ /**
+ * @return the current instruction.
+ */
+ InstrDTO *get_instr();
+ /**
+ * Squashes the pipeline.
+ */
+ void squash();
/* The following methods are made public so that they may be tested, and are
* not to be called from outside classes during standard execution.
@@ -73,11 +79,6 @@ class Stage
void set_condition(CC c, bool v);
/**
- * Squashes the pipeline.
- */
- void squash();
-
- /**
* The set of registers currently checked out.
*/
static std::deque<signed int> checked_out;