Instead of enabling use of PCLMUL and AESNI iff cpu0 supports them
authorguenther <guenther@openbsd.org>
Tue, 14 May 2024 01:42:07 +0000 (01:42 +0000)
committerguenther <guenther@openbsd.org>
Tue, 14 May 2024 01:42:07 +0000 (01:42 +0000)
commita14dd3eb38d6a4988cf15dee471d227e0fa5162d
treec22aa75092172f0683ba1ecda2fca11371b9c2f9
parent5dea098c4cfaecce9ae6586a5a65b55e2cfefa58
Instead of enabling use of PCLMUL and AESNI iff cpu0 supports them
via two global variables, make cpu_ecxfeature the intersection of
cpuid(1).ecx on all CPUs and switch cpu_configure() to directly
check that for the requisite flags.

ok kettenis@
sys/arch/amd64/amd64/autoconf.c
sys/arch/amd64/amd64/cpu.c
sys/arch/amd64/amd64/identcpu.c