mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 04:54:36 +03:00
Fixed #78
This commit is contained in:
@@ -167,11 +167,11 @@ static void callXGetBV(X86XCR* result, uint32_t inEcx) {
|
|||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
|
|
||||||
unsigned int eax, edx;
|
unsigned int eax, edx;
|
||||||
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
|
|
||||||
__asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(inEcx));
|
// Removed, because the world is not perfect:
|
||||||
# else
|
// __asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(inEcx));
|
||||||
__asm__ __volatile__(".byte 0x0F, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c"(inEcx));
|
__asm__ __volatile__(".byte 0x0F, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c"(inEcx));
|
||||||
# endif
|
|
||||||
result->eax = eax;
|
result->eax = eax;
|
||||||
result->edx = edx;
|
result->edx = edx;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user