summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorAlex Bennée2019-02-15 10:56:39 +0100
committerPeter Maydell2019-02-15 10:56:39 +0100
commit37020ff1539800b367fd69c1386e0d841f48b1ed (patch)
treeaf4f7f0df4ef55481acb53a2d911ca6820b1d909 /linux-user
parenttarget/arm: expose remaining CPUID registers as RAZ (diff)
downloadqemu-37020ff1539800b367fd69c1386e0d841f48b1ed.tar.gz
qemu-37020ff1539800b367fd69c1386e0d841f48b1ed.tar.xz
qemu-37020ff1539800b367fd69c1386e0d841f48b1ed.zip
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>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/elfload.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 775a36ccdd..3a50d587ff 100644
--- a/linux-user/elfload.c
+++ b/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) \