diff --git a/common/src/vm.rs b/common/src/vm.rs index 3d9cee3..0bd2417 100644 --- a/common/src/vm.rs +++ b/common/src/vm.rs @@ -497,7 +497,7 @@ impl Cpu { }, Op::Bgeu { rs1, rs2, imm } => { if self.regs[rs1 as usize] >= self.regs[rs2 as usize] { - self.pc = self.pc.wrapping_add(imm as u32); + pc_inc = imm as u32; } }, Op::Jal { rd, imm } => {