Browse Source

linux-user/elfload: enable HWCAP_CPUID for AArch64

Userspace programs should (in theory) query the ELF HWCAP before
probing these registers. Now we have implemented them all make it
public.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190205190224.2198-6-alex.bennee@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
pull/79/head
Alex Bennée 8 years ago
committed by Peter Maydell
parent
commit
37020ff153
  1. 1
      linux-user/elfload.c

1
linux-user/elfload.c

@ -580,6 +580,7 @@ static uint32_t get_elf_hwcap(void)
hwcaps |= ARM_HWCAP_A64_FP;
hwcaps |= ARM_HWCAP_A64_ASIMD;
hwcaps |= ARM_HWCAP_A64_CPUID;
/* probe for the extra features */
#define GET_FEATURE_ID(feat, hwcap) \

Loading…
Cancel
Save