about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-10-18 10:22:43 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-10-18 10:22:43 +0200
commitf36a479d0f759aa0687cb361ac7b2bdcc906dbb6 (patch)
tree456f26ae4466813e5646f72cd5d95fe3bf9a612a /src
parent5363c013e63befac33ca1f3b00b20ce345551c8c (diff)
downloadbox64-f36a479d0f759aa0687cb361ac7b2bdcc906dbb6.tar.gz
box64-f36a479d0f759aa0687cb361ac7b2bdcc906dbb6.zip
[ARM64_DYNAREC][TRACE] Update LR on jumpnext on trace build so debug info in case of jump to NULL are accurate
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/arm64/dynarec_arm64_helper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dynarec/arm64/dynarec_arm64_helper.c b/src/dynarec/arm64/dynarec_arm64_helper.c
index c6493015..38eacb2b 100644
--- a/src/dynarec/arm64/dynarec_arm64_helper.c
+++ b/src/dynarec/arm64/dynarec_arm64_helper.c
@@ -609,12 +609,14 @@ void jump_to_next(dynarec_arm_t* dyn, uintptr_t ip, int reg, int ninst, int is32
     CLEARIP();
     #ifdef HAVE_TRACE
     //MOVx(x3, 15);    no access to PC reg
-    #endif
+    BLR(x2); // save LR...
+    #else
     if (dyn->insts[ninst].x64.has_callret) {
         BLR(x2); // save LR...
     } else {
         BR(x2);
     }
+    #endif
 }
 
 void ret_to_epilog(dynarec_arm_t* dyn, int ninst, rex_t rex)