cpu/intel/common: Fix regression

Fix the logic introduced in CB:46276
"cpu/intel/common: only lock AES-NI when supported"
which needs to be negated.

Change-Id: Icaf882625529842ea0aedf39147fc9a9e6081e43
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46634
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Patrick Rudolph 2020-10-21 19:00:04 +02:00 committed by Michael Niewöhner
parent 389cb30ced
commit 3e69c0a077
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ void set_aesni_lock(void)
if (!CONFIG(SET_MSR_AESNI_LOCK_BIT))
return;
if (cpu_get_feature_flags_ecx() & CPUID_AES)
if (!(cpu_get_feature_flags_ecx() & CPUID_AES))
return;
/* Only run once per core as specified in the MSR datasheet */