From fa1f8346e2df4c53ddd09d0f9c3bc356b8ba3631 Mon Sep 17 00:00:00 2001 From: kobalicek Date: Fri, 27 Feb 2015 23:57:58 +0100 Subject: [PATCH] Fixed #78 --- src/asmjit/x86/x86cpuinfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/asmjit/x86/x86cpuinfo.cpp b/src/asmjit/x86/x86cpuinfo.cpp index bd36dde..218f584 100644 --- a/src/asmjit/x86/x86cpuinfo.cpp +++ b/src/asmjit/x86/x86cpuinfo.cpp @@ -167,11 +167,11 @@ static void callXGetBV(X86XCR* result, uint32_t inEcx) { #elif defined(__GNUC__) unsigned int eax, edx; -# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) - __asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(inEcx)); -# else + + // Removed, because the world is not perfect: + // __asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(inEcx)); __asm__ __volatile__(".byte 0x0F, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c"(inEcx)); -# endif + result->eax = eax; result->edx = edx;