about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorphorcys <phorcys@126.com>2025-04-14 19:32:14 +0800
committerGitHub <noreply@github.com>2025-04-14 13:32:14 +0200
commitcf32412f986a5a9c281dda5dc24bf22641a305ed (patch)
tree72196494b8e7e368df5d39b8044acff7a4105431 /src
parentf559bc48a491bf1a36713a38293fb6b100399198 (diff)
downloadbox64-cf32412f986a5a9c281dda5dc24bf22641a305ed.tar.gz
box64-cf32412f986a5a9c281dda5dc24bf22641a305ed.zip
[RV64_DYNAREC] fix MASKMOVQ. (#2531)
maskmovq write when sign bit == 1.
if mask byte = 0x00, should skip.
replace BLT with BLE.
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_0f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_0f.c b/src/dynarec/rv64/dynarec_rv64_0f.c
index f3798cb4..5627707b 100644
--- a/src/dynarec/rv64/dynarec_rv64_0f.c
+++ b/src/dynarec/rv64/dynarec_rv64_0f.c
@@ -3071,7 +3071,7 @@ uintptr_t dynarec64_0F(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
             GETEM(x5, 0, 7);
             for (int i = 0; i < 8; i++) {
                 LB(x1, wback, fixedaddress + i);
-                BLT(xZR, x1, 4 * 3);
+                BLE(xZR, x1, 4 * 3);
                 LB(x2, gback, gdoffset + i);
                 SB(x2, xRDI, i);
             }