about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-08-02 18:48:38 +0800
committerGitHub <noreply@github.com>2025-08-02 12:48:38 +0200
commitebac5834410781a5c263e50d987edf65bcbb9d8c (patch)
tree2f5bad6b97396c73c239df0b5606eed10b04ac9a /src
parent6221b01976c287e8ce6858eb09309fd70d675b67 (diff)
downloadbox64-ebac5834410781a5c263e50d987edf65bcbb9d8c.tar.gz
box64-ebac5834410781a5c263e50d987edf65bcbb9d8c.zip
[RV64_DYNAREC] Fixed scalar version of 66 0F 3A 21 INSERTPS opcode (#2881)
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_660f38.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_660f38.c b/src/dynarec/rv64/dynarec_rv64_660f38.c
index f5254d6d..df87f2f7 100644
--- a/src/dynarec/rv64/dynarec_rv64_660f38.c
+++ b/src/dynarec/rv64/dynarec_rv64_660f38.c
@@ -1154,7 +1154,7 @@ uintptr_t dynarec64_660F38(dynarec_rv64_t* dyn, uintptr_t addr, uint8_t opcode,
                         s8 = 0;
                     // GX->ud[(tmp8u>>4)&3] = EX->ud[tmp8s];
                     LWU(x3, wback, fixedaddress + 4 * s8);
-                    SW(x3, gback, gdoffset + 4 * (u8 >> 4));
+                    SW(x3, gback, gdoffset + 4 * ((u8 >> 4) & 3));
                     for (int i = 0; i < 4; ++i) {
                         if (u8 & (1 << i))
                             // GX->ud[i] = 0;