about summary refs log tree commit diff stats
path: root/src/dynarec
diff options
context:
space:
mode:
authorphorcys <phorcys@126.com>2025-09-01 14:41:08 +0800
committerGitHub <noreply@github.com>2025-09-01 08:41:08 +0200
commit2af7492cf8ba791aa199f3487d2171d9451d2d13 (patch)
treec7037492d2cbecd8eacb483ca45e3b87151289f2 /src/dynarec
parent1b2515cd496d140997d6cb2c35d180afac4ae3b8 (diff)
downloadbox64-2af7492cf8ba791aa199f3487d2171d9451d2d13.tar.gz
box64-2af7492cf8ba791aa199f3487d2171d9451d2d13.zip
[LA64_DYNAREC] Fix 0f.A3 BT opcode, fix ALSL operand order. (#2988)
ALSL.D:
tmp = (GR[rj][63:0]<<(sa2+1)) + GR[rk][63:0]
GR[rd] = tmp[63:0]
Diffstat (limited to 'src/dynarec')
-rw-r--r--src/dynarec/la64/dynarec_la64_0f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/la64/dynarec_la64_0f.c b/src/dynarec/la64/dynarec_la64_0f.c
index 913e9cd1..fdd76404 100644
--- a/src/dynarec/la64/dynarec_la64_0f.c
+++ b/src/dynarec/la64/dynarec_la64_0f.c
@@ -1377,7 +1377,7 @@ uintptr_t dynarec64_0F(dynarec_la64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
                 SMREAD();
                 addr = geted(dyn, addr, ninst, nextop, &wback, x3, x1, &fixedaddress, rex, NULL, 1, 0);
                 SRAIxw(x1, gd, 5 + rex.w);        // r1 = (gd>>5)
-                ALSL_D(x3, wback, x1, 2 + rex.w); // (&ed) += r1*4;
+                ALSL_D(x3, x1, wback, 2 + rex.w); // (&ed) += r1*4;
                 LDxw(x1, x3, fixedaddress);
                 ed = x1;
             }