From 1d65b236f4f0f2a76fa520e1d919566fe92787e2 Mon Sep 17 00:00:00 2001 From: K-W-Li <107197766+K-W-Li@users.noreply.github.com> Date: Tue, 17 Jan 2023 20:28:49 +0000 Subject: [PATCH] Fix sign issue in parse_rd_rs_rs (#16) --- riscemu/instructions/instruction_set.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/riscemu/instructions/instruction_set.py b/riscemu/instructions/instruction_set.py index ef91d18..191686c 100644 --- a/riscemu/instructions/instruction_set.py +++ b/riscemu/instructions/instruction_set.py @@ -77,8 +77,8 @@ class InstructionSet(ABC): ASSERT_LEN(ins.args, 3) if signed: return ins.get_reg(0), \ - self.get_reg_content(ins, 1), \ - self.get_reg_content(ins, 2) + Int32(self.get_reg_content(ins, 1)), \ + Int32(self.get_reg_content(ins, 2)) else: return ins.get_reg(0), \ UInt32(self.get_reg_content(ins, 1)), \