Skip to content

Commit 197a7e0

Browse files
authored
Merge pull request #8348 from SparkiDev/aarch64_cpuid_freebsd_fix
Aarch64 CPU Id: FreeBSD/OpenBSD fix
2 parents 5b07d41 + aa8a214 commit 197a7e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wolfcrypt/src/cpuid.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,10 @@
259259

260260
if (features & CPUID_AARCH64_FEAT_AES)
261261
cpuid_flags |= CPUID_AES;
262-
if (features & CPUID_AARCH64_FEAT_PMULL)
262+
if (features & CPUID_AARCH64_FEAT_AES_PMULL) {
263+
cpuid_flags |= CPUID_AES;
263264
cpuid_flags |= CPUID_PMULL;
265+
}
264266
if (features & CPUID_AARCH64_FEAT_SHA256)
265267
cpuid_flags |= CPUID_SHA256;
266268
if (features & CPUID_AARCH64_FEAT_SHA256_512)

0 commit comments

Comments
 (0)