about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-06-13 10:22:33 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-06-13 10:22:33 +0200
commit58c0bce4cf549dab1440bc60315f8b30407ca0f1 (patch)
tree201a1ea7589448c75696fefa584c83cecd48436f /src/emu
parent3a82dc6aad852c9e655e04b801ec67d17e8441c6 (diff)
downloadbox64-58c0bce4cf549dab1440bc60315f8b30407ca0f1.tar.gz
box64-58c0bce4cf549dab1440bc60315f8b30407ca0f1.zip
More work on RDTSC emulation
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/x64run0f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index 8fc5e645..2a2c78cb 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -118,7 +118,7 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step)
                         tmp64u<<=box64_rdtsc_shift;

                     R_RAX = tmp64u & 0xffffffff;

                     R_RDX = tmp64u >> 32;

-                    R_RCX = 0;  // should be low of IA32_TSC

+                    R_RCX = helper_getcpu(emu);

                     #ifdef TEST_INTERPRETER

                     test->notest = 1;

                     #endif