[ARM64_DYNAREC] Don't assume x1 is xRIP in link_next (fix regression introduced with 685afa2302)

This commit is contained in:
ptitSeb
2025-10-10 13:19:29 +02:00
parent f0eab197be
commit 41f61cf702

View File

@@ -25,6 +25,7 @@ arm64_next:
#ifdef _WIN32
ldr x18, [x0, 3120]
#endif
mov x1, x27 // xRIP, should not be needed most of the time
mov x2, x30 // "from" is in lr, so put in x2
add x3, sp, 8*11 // x3 is address to change rip
// call the function