Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Fix MIPS compiling.
  • Loading branch information
Sonicadvance1 committed Oct 21, 2013
1 parent 887f8e4 commit e3febb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/Common/Src/x64CPUDetect.cpp
Expand Up @@ -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
Expand Down

0 comments on commit e3febb1

Please sign in to comment.