summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/x64CPUDetect.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2013-10-21 09:52:43 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2013-10-21 09:52:43 -0500
commite3febb1603d220685c949e615ac5d9e03c19f5b0 (patch)
treedae4c83b519043c9ce06759099a4cd9df23d841a /Source/Core/Common/Src/x64CPUDetect.cpp
parent887f8e463d0ba75684ed57480461895307b49fa0 (diff)
[Android] Fix MIPS compiling.
Diffstat (limited to 'Source/Core/Common/Src/x64CPUDetect.cpp')
-rw-r--r--Source/Core/Common/Src/x64CPUDetect.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/x64CPUDetect.cpp b/Source/Core/Common/Src/x64CPUDetect.cpp
index 3db6227ca7..43c93ae8d6 100644
--- a/Source/Core/Common/Src/x64CPUDetect.cpp
+++ b/Source/Core/Common/Src/x64CPUDetect.cpp
@@ -76,9 +76,11 @@ static void __cpuid(int info[4], int x)
#define _XCR_XFEATURE_ENABLED_MASK 0
static unsigned long long _xgetbv(unsigned int index)
{
+#ifndef _M_GENERIC
unsigned int eax, edx;
__asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(index));
return ((unsigned long long)edx << 32) | eax;
+#endif
}
#endif