[PrivRV32I] finally correct parsing of load/store instruction args
This commit is contained in:
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…
Reference in New Issue
Block a user