about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <numbksco@gmail.com>2024-07-16 18:57:14 +0800
committerGitHub <noreply@github.com>2024-07-16 12:57:14 +0200
commit60d886c052250ba4473ec010d968ea2cea0563fe (patch)
tree76c6cf119d4e63f8faa65c546e720d7eedc1f7fa /src
parentd700cc1f55c94783ec3aba6b05bb2005365be11f (diff)
downloadbox64-60d886c052250ba4473ec010d968ea2cea0563fe.tar.gz
box64-60d886c052250ba4473ec010d968ea2cea0563fe.zip
[RV64_DYNAREC] Fixed GETGXSS_empty on upper bits handling (#1685)
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_helper.c b/src/dynarec/rv64/dynarec_rv64_helper.c
index b58481b1..5d389af3 100644
--- a/src/dynarec/rv64/dynarec_rv64_helper.c
+++ b/src/dynarec/rv64/dynarec_rv64_helper.c
@@ -1614,8 +1614,7 @@ int sse_get_reg_empty(dynarec_rv64_t* dyn, int ninst, int s1, int a, int single)
             if (single) {
                 // writing back the float
                 FSW(dyn->e.ssecache[a].reg, xEmu, offsetof(x64emu_t, xmm[a]));
-                // clear upper 32 bit
-                SW(xZR, xEmu, offsetof(x64emu_t, xmm[a]) + 4);
+                // there is no need to clear upper bits, it's cleared manually when needed.
             }
             dyn->e.olds[a].changed = 1;
             dyn->e.olds[a].purged = 0;