aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/alu.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine/alu.h')
-rw-r--r--qtmips_machine/alu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/qtmips_machine/alu.h b/qtmips_machine/alu.h
index 372e4e6..e14a903 100644
--- a/qtmips_machine/alu.h
+++ b/qtmips_machine/alu.h
@@ -50,9 +50,11 @@ namespace machine {
// s: Loaded from rs. Also calles as source.
// t: Loaded from rt or immediate field from instruction it self. Also called as target.
// sa: This is value directly from instruction it self (sa section) used for shift operations
+// sz: This is value directly from instruction it self used in filed extract instructions
// regs: Registers used. We need direct access to lo and hi registers (those are not accessed from core it self but from alu directly
// Returned value is commonly saved to rt/rd or any other way passed trough core
-std::uint32_t alu_operate(enum AluOp operation, std::uint32_t s, std::uint32_t t, std::uint8_t sa, Registers *regs, bool &discard);
+std::uint32_t alu_operate(enum AluOp operation, std::uint32_t s, std::uint32_t t,
+ std::uint8_t sa, std::uint8_t sz, Registers *regs, bool &discard);
}