[PrivRV32I] finally correct parsing of load/store instruction args

kernel-mode
Anton Lydike 4 years ago
parent e4537f86d9
commit 37910018b9

@ -138,4 +138,6 @@ class PrivRV32I(RV32I):
def parse_mem_ins(self, ins: 'LoadedInstruction') -> Tuple[str, int]:
ASSERT_LEN(ins.args, 3)
return ins.get_reg(1), self.get_reg_content(ins, 0) + ins.get_imm(2)
addr = self.get_reg_content(ins, 1) + ins.get_imm(2)
reg = ins.get_reg(0)
return reg, addr

Loading…
Cancel
Save