From 98d79809921589bd6ad5fa680db1b3c3a000e0cf Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Sat, 25 Mar 2023 03:19:26 +0100 Subject: [PATCH] early-access version 3473 --- README.md | 2 +- src/common/x64/cpu_wait.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f2f80c49a..69e3d3144 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 3472. +This is the source code for early-access 3473. ## Legal Notice diff --git a/src/common/x64/cpu_wait.cpp b/src/common/x64/cpu_wait.cpp index 1ebaf87a5..cfeef6a3d 100755 --- a/src/common/x64/cpu_wait.cpp +++ b/src/common/x64/cpu_wait.cpp @@ -49,7 +49,10 @@ static void TPAUSE() { // At 2 GHz, 100K cycles is 50us // At 4 GHz, 100K cycles is 25us static constexpr auto PauseCycles = 100'000; - asm volatile("tpause %%ecx" : : "c"(0), "d"((FencedRDTSC() + PauseCycles) >> 32)); + const auto tsc = FencedRDTSC() + PauseCycles; + const auto eax = static_cast(tsc & 0xFFFFFFFF); + const auto edx = static_cast(tsc >> 32); + asm volatile("tpause %0" : : "r"(0), "d"(edx), "a"(eax)); } #endif