From eab6cf4fc5720b330ba89c38e9e6119a8a6fabfa Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 31 Jan 2019 11:02:03 +0100 Subject: Initial support for JAL. The JR, BEQ, BNE are most probably incorrect still. There is missing forwarding for pipelined execution. Signed-off-by: Pavel Pisa --- qtmips_machine/alu.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qtmips_machine/alu.h') diff --git a/qtmips_machine/alu.h b/qtmips_machine/alu.h index 786bba0..f0ce6c2 100644 --- a/qtmips_machine/alu.h +++ b/qtmips_machine/alu.h @@ -33,8 +33,9 @@ enum AluOp : std::uint8_t { ALU_OP_NOR, ALU_OP_SLT = 42, ALU_OP_SLTU, - ALU_OP_LUI, // We don't care about exact index for this one - ALU_OP_LAST = 64 // First impossible operation (just to be sure that we don't overflow) + ALU_OP_LUI = 64, // We don't care about exact index for this one + ALU_OP_PASS_S, // Pass s argument without change for JAL + ALU_OP_LAST // First impossible operation (just to be sure that we don't overflow) }; // Do ALU operation. -- cgit v1.2.3