Bug 1274253. Properly test the cpuid bits.

I fixed the other platforms to do this but failed to do so
on GCC/clang
This commit is contained in:
Jeff Muizelaar 2016-05-19 11:23:30 -04:00
parent ad87d3252d
commit 1c19302c86

View File

@ -34,7 +34,7 @@ has_cpuid_bits(unsigned int level, CPUIDRegister reg, unsigned int bits)
regs[1] = ebx;
regs[2] = ecx;
regs[3] = edx;
return regs[reg] & bits;
return (regs[reg] & bits) == bits;
}
static uint64_t xgetbv(uint32_t xcr) {