summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2018-03-01 12:05:58 +0100
committerPeter Maydell2018-03-01 12:13:59 +0100
commit201b19d5ce883c6d3b5f6dec2a35a332c4bbec0d (patch)
treec68a49966c86df656fca6667a8ac8faf5d8d8ad4
parenttarget/arm: Enable ARM_V8_FP16 feature bit for the AArch64 "any" CPU (diff)
downloadqemu-201b19d5ce883c6d3b5f6dec2a35a332c4bbec0d.tar.gz
qemu-201b19d5ce883c6d3b5f6dec2a35a332c4bbec0d.tar.xz
qemu-201b19d5ce883c6d3b5f6dec2a35a332c4bbec0d.zip
linux-user: Report AArch64 FP16 support via hwcap bits
Set the appropriate Linux hwcap bits to tell the guest binary if we have implemented half-precision floating point support. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--linux-user/elfload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 0208022445..6689089cd2 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -551,6 +551,8 @@ static uint32_t get_elf_hwcap(void)
GET_FEATURE(ARM_FEATURE_V8_SM3, ARM_HWCAP_A64_SM3);
GET_FEATURE(ARM_FEATURE_V8_SM4, ARM_HWCAP_A64_SM4);
GET_FEATURE(ARM_FEATURE_V8_SHA512, ARM_HWCAP_A64_SHA512);
+ GET_FEATURE(ARM_FEATURE_V8_FP16,
+ ARM_HWCAP_A64_FPHP | ARM_HWCAP_A64_ASIMDHP);
#undef GET_FEATURE
return hwcaps;