compiler, runtime: support recover on riscv64

This commit is contained in:
Jake Bailey
2026-07-23 21:18:38 -07:00
committed by Ron Evans
parent 0c68e1215e
commit 528476f2b3
2 changed files with 13 additions and 5 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ tinygo_scanCurrentStack:
tinygo_longjmp:
// Note: the code we jump to assumes a0 is non-zero, which is already the
// case because that's the defer frame pointer.
lw sp, 0(a0) // jumpSP
lw a1, REGSIZE(a0) // jumpPC
LREG sp, 0(a0) // jumpSP
LREG a1, REGSIZE(a0) // jumpPC
jr a1
.section .text.tinygo_checkpointJump