]> git.proxmox.com Git - mirror_qemu.git/commitdiff
linux-user/elfload: enable HWCAP_CPUID for AArch64
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 15 Feb 2019 09:56:39 +0000 (09:56 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Feb 2019 09:56:39 +0000 (09:56 +0000)
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>
linux-user/elfload.c

index 775a36ccddabe0206f916d03148160b2dcfba38a..3a50d587ff0004942bba41f76dbd9b595df84a65 100644 (file)
@@ -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) \