about summary refs log tree commit diff stats
path: root/src/dynarec
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-12-31 11:48:13 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-12-31 11:48:13 +0100
commitd21efb51ce3e8f9db18b3a023298372007696f92 (patch)
tree7cface20fed4c097e9631991c146b09ffa40147b /src/dynarec
parentbd4c74221285e438616a25ddd0736339957a069b (diff)
downloadbox64-d21efb51ce3e8f9db18b3a023298372007696f92.tar.gz
box64-d21efb51ce3e8f9db18b3a023298372007696f92.zip
[DYNAREC] make jmp 0 do a jmp_to_next to allow the block to be checked and rebuild if needed
Diffstat (limited to 'src/dynarec')
-rwxr-xr-xsrc/dynarec/dynarec_native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/dynarec_native.c b/src/dynarec/dynarec_native.c
index d8ac671c..ad496068 100755
--- a/src/dynarec/dynarec_native.c
+++ b/src/dynarec/dynarec_native.c
@@ -470,7 +470,7 @@ void* FillBlock64(dynablock_t* block, uintptr_t addr) {
     for(int i=0; i<helper.size; ++i)
         if(helper.insts[i].x64.jmp) {
             uintptr_t j = helper.insts[i].x64.jmp;
-            if(j<start || j>=end) {
+            if(j<start || j>=end || j==helper.insts[i].x64.addr) {
                 helper.insts[i].x64.jmp_insts = -1;
                 helper.insts[i].x64.need_after |= X_PEND;
             } else {