about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-05-21 22:25:25 +0800
committerGitHub <noreply@github.com>2025-05-21 16:25:25 +0200
commitbd23f259ccb3b5ed2b7d6fc79f9e7456cbf8dad0 (patch)
tree1ea99634036fd62743c6b4358a3f8e307c502a9d /src
parentefe1eb73dcd05168e33f3708c85fafbb5d8e4709 (diff)
downloadbox64-bd23f259ccb3b5ed2b7d6fc79f9e7456cbf8dad0.tar.gz
box64-bd23f259ccb3b5ed2b7d6fc79f9e7456cbf8dad0.zip
[RV64_DYNAREC] Fixed a typo in 66 F0 0F LOCK CMPXCHG opcode (#2658)
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_66f0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_66f0.c b/src/dynarec/rv64/dynarec_rv64_66f0.c
index d4310785..3e49b463 100644
--- a/src/dynarec/rv64/dynarec_rv64_66f0.c
+++ b/src/dynarec/rv64/dynarec_rv64_66f0.c
@@ -96,7 +96,7 @@ uintptr_t dynarec64_66F0(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int
                     }
                     MARK;
                     SMDMB();
-                    UFLAG_IF { emit_cmp16(dyn, ninst, x6, x7, x2, x3, x4, x5); }
+                    UFLAG_IF { emit_cmp16(dyn, ninst, x6, x1, x2, x3, x4, x5); }
                     INSH(xRAX, x1, x2, x3, 1, 0);
                     break;
                 default: