arm64: Export HWCAP_CPUID

We have export the CPUID registers since 2018 but never set the
HWCAP_CPUID flag to tell userspace it could use them. Fix this by
setting it.

Sponsored by:	Arm Ltd
This commit is contained in:
Andrew Turner
2023-09-22 17:20:17 +01:00
parent 2f198d313b
commit d61f9bfb0e
+2
View File
@@ -2203,6 +2203,8 @@ identify_cpu_sysinit(void *dummy __unused)
/* Find the values to export to userspace as AT_HWCAP and AT_HWCAP2 */
parse_cpu_features();
/* We export the CPUID registers */
elf_hwcap |= HWCAP_CPUID;
#ifdef COMPAT_FREEBSD32
/* Set the default caps and any that need to check multiple fields */