summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-10 15:30:29 -0400
committerbd <bdunahu@operationnull.com>2025-05-10 15:30:29 -0400
commit5beea0c476101ec7b122f3b2181d92ce096492fb (patch)
tree85b4ebdc8d013e97f67a4235c4bab749047200d9 /inc
parentd0bb0aaf39bb61736e72b30e4d8f1a4a39536a0c (diff)
Further small simplifications
Diffstat (limited to 'inc')
-rw-r--r--inc/id.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/id.h b/inc/id.h
index c1928ed..5fda2b4 100644
--- a/inc/id.h
+++ b/inc/id.h
@@ -60,7 +60,7 @@ class ID : public Stage
* @param the resulting third field, which varies per type.
* @param the resulting mnemonic.
*/
- void get_instr_fields(signed int &s1);
+ void get_instr_fields(signed int instr_bits);
void decode_R_type(signed int &s1);
void decode_I_type(signed int &s1);
void decode_J_type(signed int &s1);
@@ -96,10 +96,11 @@ class ID : public Stage
/**
* Facilitates register checkout and data hazard management.
* It does this by checking that the register passed in is not currently
- * checked out. If true, then replaces reg with the value of the register and
- * returns OK. If false, returns STALLED.
+ * checked out. If true, then sets `result' with the value of the register
+ * and returns OK. If false, returns STALLED.
*
- * @param the registers number, to be dereferenced.
+ * @param the registers number
+ * @param the dereferenced register value
* @return OK if `reg` is not checked out, STALLED otherwise.
*/
template <typename T> Response read_guard(int reg, T &result)