about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-09-27 14:53:09 +0800
committerGitHub <noreply@github.com>2025-09-27 08:53:09 +0200
commit4d7e9ccf51ffc2c160abc0af87bd36819c67d7ca (patch)
tree251ea281e4f81a642dec70bfda9f181ca2c8081d /src
parent8f5613055d8d0ec991304fa64545e423f040780a (diff)
downloadbox64-4d7e9ccf51ffc2c160abc0af87bd36819c67d7ca.tar.gz
box64-4d7e9ccf51ffc2c160abc0af87bd36819c67d7ca.zip
[RV64_DYNAREC] Fixed a scratch register confliction (#3033)
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_helper.c b/src/dynarec/rv64/dynarec_rv64_helper.c
index 69bc708e..72690a8d 100644
--- a/src/dynarec/rv64/dynarec_rv64_helper.c
+++ b/src/dynarec/rv64/dynarec_rv64_helper.c
@@ -739,7 +739,7 @@ void iret_to_epilog(dynarec_rv64_t* dyn, uintptr_t ip, int ninst, int is64bits)
         POP1_32(x2);
         POP1_32(xFlags);
     }
-    FLAGS_ADJUST_FROM11(xFlags, xFlags, x2);
+    FLAGS_ADJUST_FROM11(xFlags, xFlags, x3);
 
     SH(x2, xEmu, offsetof(x64emu_t, segs[_CS]));
     SW(xZR, xEmu, offsetof(x64emu_t, segs_serial[_CS]));