mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Fix missing Detection for AVX OS Support
This commit is contained in:
parent
32d38a4633
commit
c5caaa9211
2 changed files with 14 additions and 3 deletions
|
@ -16,6 +16,17 @@ namespace utils
|
|||
return {0u+regs[0], 0u+regs[1], 0u+regs[2], 0u+regs[3]};
|
||||
}
|
||||
|
||||
inline u64 get_xgetbv(u32 xcr)
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
return _xgetbv(xcr);
|
||||
#else
|
||||
u32 eax, edx;
|
||||
__asm__ volatile( "xgetbv" : "=a"(eax), "=d"(edx) : "c"(xcr));
|
||||
return eax | (u64(edx) << 32);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool has_ssse3();
|
||||
|
||||
bool has_avx();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue