mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
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:
parent
ad87d3252d
commit
1c19302c86
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user