Commit 89c3d35d authored by Inphi's avatar Inphi Committed by GitHub

cannon: Fix jalr stack tracking (#11831)

parent f93f9f40
...@@ -86,8 +86,10 @@ func ExecMipsCoreStepLogic(cpu *mipsevm.CpuScalars, registers *[32]uint32, memor ...@@ -86,8 +86,10 @@ func ExecMipsCoreStepLogic(cpu *mipsevm.CpuScalars, registers *[32]uint32, memor
linkReg := uint32(0) linkReg := uint32(0)
if fun == 9 { if fun == 9 {
linkReg = rdReg linkReg = rdReg
stackTracker.PushStack(cpu.PC, rs)
} else {
stackTracker.PopStack()
} }
stackTracker.PopStack()
return HandleJump(cpu, registers, linkReg, rs) return HandleJump(cpu, registers, linkReg, rs)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment