summaryrefslogtreecommitdiff
path: root/inc/id.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-30 14:28:45 -0400
committerbd <bdunahu@operationnull.com>2025-03-30 14:28:45 -0400
commit8c46ba4f216aec9f512cd398317f891be9b07e84 (patch)
treecb502366f721c6bca60becc309fd9de288769d87 /inc/id.h
parent916949133a5797772dcd6966e469c12230ffc3fa (diff)
Add mock stage, proper decode tests
Diffstat (limited to 'inc/id.h')
-rw-r--r--inc/id.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/inc/id.h b/inc/id.h
index c5c1f1d..9911440 100644
--- a/inc/id.h
+++ b/inc/id.h
@@ -14,8 +14,7 @@ class ID : public Stage
* @return A newly allocated ID object.
*/
ID(Stage *next);
-
- InstrDTO *advance(Response p) override;
+ using Stage::advance;
/* The following methods are made public so that they may be tested, and are
* not to be called from outside classes during standard execution.
@@ -56,10 +55,7 @@ class ID : public Stage
void write_guard(signed int &r);
private:
- /**
- * Decodes `curr_instr` and sets status to BLOCKED if a data hazard occurs.
- */
- void advance_helper();
+ void advance_helper() override;
/**
* Helper for `get_instr_fields`
* Attempts to parse and dereference instruction arguments. Uses read and