about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-06-13 12:31:20 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-06-13 12:31:20 +0200
commita074115bf5f0806d2e50ac2c71a3978e11026ad1 (patch)
tree163b53cdf70a383cafb38e3cd3189e0b5b5988c4
parentc3aa06817932cabdd1e8ca2f9223b889a246dc88 (diff)
downloadbox64-a074115bf5f0806d2e50ac2c71a3978e11026ad1.tar.gz
box64-a074115bf5f0806d2e50ac2c71a3978e11026ad1.zip
Fixed issue with LOCK REX.W XADD opcode
-rw-r--r--src/emu/x64runf0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/x64runf0.c b/src/emu/x64runf0.c
index 4a3a4763..1a0ada10 100644
--- a/src/emu/x64runf0.c
+++ b/src/emu/x64runf0.c
@@ -413,7 +413,7 @@ int RunF0(x64emu_t *emu, rex_t rex)
                     if(rex.w) {

                         do {

                             tmp64u = arm64_lock_read_dd(ED);

-                            tmp64u2 = add64(emu, tmp64u, GD->dword[0]);

+                            tmp64u2 = add64(emu, tmp64u, GD->q[0]);

                         } while(arm64_lock_write_dd(ED, tmp64u2));

                         GD->q[0] = tmp64u;

                     } else {