target/arm: report ARMv8-A FP support for AArch32 -cpu max
commit45b1a243b81a7c9ae56235937280711dd9914ca7
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 15 Jul 2019 13:17:02 +0000 (15 14:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 15 Jul 2019 13:17:02 +0000 (15 14:17 +0100)
treead012ba6ff552e592e4dc7d97b3ee0a14b7564f7
parentb9404bf592e7ba74180e1a54ed7a266ec6ee67f2
target/arm: report ARMv8-A FP support for AArch32 -cpu max

When we converted to using feature bits in 602f6e42cfbf we missed out
the fact (dp && arm_dc_feature(s, ARM_FEATURE_V8)) was supported for
-cpu max configurations. This caused a regression in the GCC test
suite. Fix this by setting the appropriate bits in mvfr1.FPHP to
report ARMv8-A with FP support (but not ARMv8.2-FP16).

Fixes: https://bugs.launchpad.net/qemu/+bug/1836078
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190711103737.10017-1-alex.bennee@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c