[PrivRV32I] fixed bug with blt backwards jumps missing by one
This commit is contained in:
parent
f14bd2b983
commit
6351f1e84d
@ -98,7 +98,7 @@ class PrivRV32I(RV32I):
|
||||
def instruction_blt(self, ins: 'LoadedInstruction'):
|
||||
rs1, rs2, dst = self.parse_rs_rs_imm(ins)
|
||||
if rs1 < rs2:
|
||||
self.pc += dst
|
||||
self.pc += dst - 4
|
||||
|
||||
def instruction_bge(self, ins: 'LoadedInstruction'):
|
||||
rs1, rs2, dst = self.parse_rs_rs_imm(ins)
|
||||
|
Loading…
Reference in New Issue
Block a user