summaryrefslogtreecommitdiff
path: root/runtime.S
diff options
context:
space:
mode:
Diffstat (limited to 'runtime.S')
-rw-r--r--runtime.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime.S b/runtime.S
index 5ffa06c..b117b77 100644
--- a/runtime.S
+++ b/runtime.S
@@ -153,7 +153,12 @@ cart:
inccycles:
add $4, %rax
cmp %rbp, %rax
- jge handle_cycle_limit
+ jge do_limit
+ ret
+do_limit:
+ push %rcx
+ call handle_cycle_limit
+ pop %rcx
ret
.global m68k_read_long_scratch1