mirror of
https://github.com/RPCS3/asmjit.git
synced 2026-07-18 18:34:26 -04:00
[BUG] Fix avx512 detection (#136)
This commit is contained in:
committed by
Petr Kobalicek
parent
a7d3c757e4
commit
f900a92e13
@@ -501,7 +501,7 @@ static void x86DetectCpuInfo(CpuInfo* cpuInfo) noexcept {
|
||||
// XMM/YMM states need to be enabled by OS.
|
||||
// - XCR0[7:5] == 111b
|
||||
// Upper 256-bit of ZMM0-XMM15 and ZMM16-ZMM31 need to be enabled by the OS.
|
||||
if ((xcr0.eax & 0x00000076U) == 0x00000076U) {
|
||||
if ((xcr0.eax & 0x000000E6U) == 0x000000E6U) {
|
||||
cpuInfo->addFeature(CpuInfo::kX86FeatureAVX512F);
|
||||
|
||||
if (regs.ebx & 0x00020000U) cpuInfo->addFeature(CpuInfo::kX86FeatureAVX512DQ);
|
||||
|
||||
Reference in New Issue
Block a user