From b85e3b02441f842b11d49e7cd44047ef73e37de2 Mon Sep 17 00:00:00 2001 From: Josh <36666883+Hibyehello@users.noreply.github.com> Date: Sun, 15 May 2022 20:47:35 -0500 Subject: [PATCH] Define _xgetbv_fix for windows This is needed to allow building on Windows and Linux --- Source/Core/Common/x64CPUDetect.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/Common/x64CPUDetect.cpp b/Source/Core/Common/x64CPUDetect.cpp index 5fde51d..bd157be 100644 --- a/Source/Core/Common/x64CPUDetect.cpp +++ b/Source/Core/Common/x64CPUDetect.cpp @@ -49,6 +49,12 @@ static u64 _xgetbv_fix(u32 index) return ((u64)edx << 32) | eax; } +#else +// Define _xgetbv_fix for windows +static u64 _xgetbv_fix(u32 index) +{ + return _xgetbv(index) +} #endif // ifndef _WIN32 CPUInfo cpu_info;