From a107902ca07e69413437fd2e66495a91b4b6fb18 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 4 Feb 2019 18:39:16 +0100 Subject: Take into account actual requirements for rs, rt and rd write for individual instructions. Signed-off-by: Pavel Pisa --- qtmips_machine/core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qtmips_machine/core.h') 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 -- cgit v1.2.3