aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/core.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-04 18:39:16 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-04 18:39:16 +0100
commita107902ca07e69413437fd2e66495a91b4b6fb18 (patch)
tree3f8e7712a5c21f9d50256b5e49c04dea9d4a95fe /qtmips_machine/core.h
parent40580e24e7a7b2e774d001878dc493216e75b936 (diff)
downloadqtmips-a107902ca07e69413437fd2e66495a91b4b6fb18.tar.gz
qtmips-a107902ca07e69413437fd2e66495a91b4b6fb18.tar.bz2
qtmips-a107902ca07e69413437fd2e66495a91b4b6fb18.zip
Take into account actual requirements for rs, rt and rd write for individual instructions.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/core.h')
-rw-r--r--qtmips_machine/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h
index 3a27f55..6f9509f 100644
--- a/qtmips_machine/core.h
+++ b/qtmips_machine/core.h
@@ -132,6 +132,8 @@ protected:
bool regd; // If rd is used (otherwise rt is used for write target)
bool regd31; // Use R31 as destionation for JAL
bool regwrite; // If output should be written back to register (which one depends on regd)
+ bool alu_req_rs; // requires rs value for ALU
+ bool alu_req_rt; // requires rt value for ALU or SW
bool bjr_req_rs; // requires rs for beq, bne, blez, bgtz, jr nad jalr
bool bjr_req_rt; // requires rt for beq, bne
bool forward_m_d_rs; // forwarding required for beq, bne, blez, bgtz, jr nad jalr