Skip to content

Commit

Permalink
CPUID: Fix inverted RDTSCP check
Browse files Browse the repository at this point in the history
This was inverted and always enabling the RDTSCP cpuid bit for wine.
Thus always disabling it elsewhere.
  • Loading branch information
Sonicadvance1 committed May 2, 2024
1 parent 3fda47e commit 6228226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FEXCore/Source/Interface/Core/CPUID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};

Expand Down

0 comments on commit 6228226

Please sign in to comment.