aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/alu.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-05 10:16:37 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-05 10:16:37 +0100
commitfc343acc4d81d06e5cba92b74de3565b6d12dfcf (patch)
treee5ed151f568d687eab36245e408b705eab5c0690 /qtmips_machine/alu.h
parentb4118e4b758bd82010a9004167f75f176aba8397 (diff)
downloadqtmips-fc343acc4d81d06e5cba92b74de3565b6d12dfcf.tar.gz
qtmips-fc343acc4d81d06e5cba92b74de3565b6d12dfcf.tar.bz2
qtmips-fc343acc4d81d06e5cba92b74de3565b6d12dfcf.zip
Correct shift operation and make ALU_OP_MOVZ and ALU_OP_MOVN encoding independent.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/alu.h')
-rw-r--r--qtmips_machine/alu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/alu.h b/qtmips_machine/alu.h
index efadbe0..372e4e6 100644
--- a/qtmips_machine/alu.h
+++ b/qtmips_machine/alu.h
@@ -52,7 +52,7 @@ namespace machine {
// sa: This is value directly from instruction it self (sa section) used for shift operations
// 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);
+std::uint32_t alu_operate(enum AluOp operation, std::uint32_t s, std::uint32_t t, std::uint8_t sa, Registers *regs, bool &discard);
}