about summary refs log tree commit diff stats
path: root/src/dynarec/dynarec_native.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-06-09 10:59:02 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-06-09 10:59:51 +0200
commite427c6e9cdbb69f6eb14a624ec9c6c9fd6d24849 (patch)
tree03dad05a73c81d29b23d7be9d20fbee4de8f0109 /src/dynarec/dynarec_native.c
parentcaba957426f5a93a1e4d6db5a9894708b1ed71b8 (diff)
downloadbox64-e427c6e9cdbb69f6eb14a624ec9c6c9fd6d24849.tar.gz
box64-e427c6e9cdbb69f6eb14a624ec9c6c9fd6d24849.zip
[DYNAREC] Reset table64size before pass1 and pass2
Diffstat (limited to 'src/dynarec/dynarec_native.c')
-rw-r--r--src/dynarec/dynarec_native.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dynarec/dynarec_native.c b/src/dynarec/dynarec_native.c
index 6155bf84..d47ab2fb 100644
--- a/src/dynarec/dynarec_native.c
+++ b/src/dynarec/dynarec_native.c
@@ -763,7 +763,7 @@ void* FillBlock64(dynablock_t* block, uintptr_t addr, int alternate, int is32bit
     // no need for next anymore
     helper.next_sz = helper.next_cap = 0;
     helper.next = NULL;
-
+    helper.table64size = 0;
     // pass 1, float optimizations, first pass for flags
     native_pass1(&helper, addr, alternate, is32bits, inst_max);
     if(helper.abort) {
@@ -776,6 +776,7 @@ void* FillBlock64(dynablock_t* block, uintptr_t addr, int alternate, int is32bit
             helper.need_x87check = 0;
     }
     POSTUPDATE_SPECIFICS(&helper);
+    helper.table64size = 0;
     // pass 2, instruction size
     helper.callrets = static_callrets;
     native_pass2(&helper, addr, alternate, is32bits, inst_max);