From 054225612d13e9a32b7900e423590367b5969b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 21 Nov 2017 23:37:09 +0100 Subject: Implement some immediate arithmetic instructions --- qtmips_machine/core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qtmips_machine/core.h') diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h index 5dd5726..9829741 100644 --- a/qtmips_machine/core.h +++ b/qtmips_machine/core.h @@ -28,7 +28,7 @@ protected: Instruction inst; bool mem2reg; // Write memory output to register (instead alu output) bool memwrite; // If memory should write input - bool alubimm; // If b value to alu is immediate value (rt used otherwise) + bool alusrc; // If second value to alu is immediate value (rt used otherwise) bool regd; // If rd is used (otherwise rt is used for write target) bool regwrite; // If output should be written back to register (which one depends on regd) bool branch; // If this is branch instruction @@ -37,13 +37,13 @@ protected: std::uint32_t val_rt; // Value from register rt }; struct dtExecute { - bool mem2reg; + bool regwrite; std::uint8_t rwrite; // Writeback register (multiplexed between rt and rd according to regd) std::uint32_t alu_val; // Result of ALU execution // TODO }; struct dtMemory { - bool mem2reg; + bool regwrite; std::uint8_t rwrite; std::uint32_t alu_val; // TODO -- cgit v1.2.3