From 6228226c08df4a53e39a84e31cd07e1d999547bf Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Wed, 1 May 2024 18:31:41 -0700 Subject: [PATCH] CPUID: Fix inverted RDTSCP check This was inverted and always enabling the RDTSCP cpuid bit for wine. Thus always disabling it elsewhere. --- FEXCore/Source/Interface/Core/CPUID.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FEXCore/Source/Interface/Core/CPUID.cpp b/FEXCore/Source/Interface/Core/CPUID.cpp index 7fd4e4c45b..85d5caff98 100644 --- a/FEXCore/Source/Interface/Core/CPUID.cpp +++ b/FEXCore/Source/Interface/Core/CPUID.cpp @@ -841,9 +841,9 @@ FEXCore::CPUID::FunctionResults CPUIDEmu::Function_8000_0001h(uint32_t Leaf) con // RDTSCP is disabled on WIN32/Wine because there is no sane way to query processor ID. #ifndef _WIN32 - constexpr uint32_t SUPPORTS_RDTSCP = 0; -#else constexpr uint32_t SUPPORTS_RDTSCP = 1; +#else + constexpr uint32_t SUPPORTS_RDTSCP = 0; #endif FEXCore::CPUID::FunctionResults Res {};