about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-02-19 10:04:27 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-02-19 10:04:27 +0100
commita379b4aab880201110be9292747117338446271f (patch)
tree3f29db5d533d0e2d1764f236113dd86fe245199f /src
parent3b8d6ef208d4a3f5d3402977b0978f9a294e8aae (diff)
downloadbox64-a379b4aab880201110be9292747117338446271f.tar.gz
box64-a379b4aab880201110be9292747117338446271f.zip
[DYNAREC] Small optim on getDB
Diffstat (limited to 'src')
-rw-r--r--src/custommem.c2
-rwxr-xr-xsrc/dynarec/arm64/arm64_next.S1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/custommem.c b/src/custommem.c
index 8b7a5a47..00e24246 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -766,8 +766,6 @@ dynablock_t* getDB(uintptr_t addr)
     }*/
 
     uintptr_t ret = (uintptr_t)box64_jmptbl3[idx3][idx2][idx1][idx0];
-    if(ret==(uintptr_t)native_next)
-        return NULL;
 
     return *(dynablock_t**)(ret - sizeof(void*));
 }
diff --git a/src/dynarec/arm64/arm64_next.S b/src/dynarec/arm64/arm64_next.S
index f96a50d7..e900fbec 100755
--- a/src/dynarec/arm64/arm64_next.S
+++ b/src/dynarec/arm64/arm64_next.S
@@ -10,6 +10,7 @@
 
 .global arm64_next
 
+    .8byte  0   // NULL pointer before arm64_next, for getDB
 arm64_next:
     // emu is r0
     // IP address is r1