mirror of
https://github.com/FEX-Emu/xbyak.git
synced 2025-02-23 14:50:45 +00:00
gcc 4.2 does not support xgetbv
This commit is contained in:
parent
82c2ea58c0
commit
0f7dea2f31
@ -72,10 +72,12 @@ public:
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
return __xgetbv(0);
|
||||
#else
|
||||
#elif __GNUC_PREREQ(4, 3)
|
||||
unsigned int eax, edx;
|
||||
__asm__ volatile("xgetbv" : "=a"(eax), "=d"(edx) : "c"(0));
|
||||
return ((uint64)edx << 32) | eax;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
enum Type {
|
||||
|
Loading…
x
Reference in New Issue
Block a user