mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
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>
This commit is contained in:
parent
d040242eff
commit
37020ff153
@ -580,6 +580,7 @@ static uint32_t get_elf_hwcap(void)
|
|||||||
|
|
||||||
hwcaps |= ARM_HWCAP_A64_FP;
|
hwcaps |= ARM_HWCAP_A64_FP;
|
||||||
hwcaps |= ARM_HWCAP_A64_ASIMD;
|
hwcaps |= ARM_HWCAP_A64_ASIMD;
|
||||||
|
hwcaps |= ARM_HWCAP_A64_CPUID;
|
||||||
|
|
||||||
/* probe for the extra features */
|
/* probe for the extra features */
|
||||||
#define GET_FEATURE_ID(feat, hwcap) \
|
#define GET_FEATURE_ID(feat, hwcap) \
|
||||||
|
Loading…
Reference in New Issue
Block a user