diff options
| -rw-r--r-- | arch/x86/x86_features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/x86_features.c b/arch/x86/x86_features.c index c94a129235..bed1df3d12 100644 --- a/arch/x86/x86_features.c +++ b/arch/x86/x86_features.c @@ -101,7 +101,7 @@ void Z_INTERNAL x86_check_features(struct x86_cpu_features *features) { cpuidex(7, 0, &eax, &ebx, &ecx, &edx); // check BMI2 bit - features->has_bmi2 = ebx & 0x8; + features->has_bmi2 = ebx & 0x100; // check AVX2 bit if the OS supports saving YMM registers if (features->has_os_save_ymm) { |
