]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Restructure has_vfp_d32 test
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 19 Jun 2023 14:02:16 +0000 (16:02 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 23 Jun 2023 10:26:26 +0000 (11:26 +0100)
commit4315f7c6147431a69a02613fbdf9964d68f87a27
treedd4f71e6d0033456cccb6e813fa69b7ae726c753
parentb0438861efe1dfbdfdd9fa1d9aa05100d37ea8ee
target/arm: Restructure has_vfp_d32 test

One cannot test for feature aa32_simd_r32 without first
testing if AArch32 mode is supported at all.  This leads to

qemu-system-aarch64: ARM CPUs must have both VFP-D32 and Neon or neither

for Apple M1 cpus.

We already have a check for ARMv8-A never setting vfp-d32 true,
so restructure the code so that AArch64 avoids the test entirely.

Reported-by: Mads Ynddal <mads@ynddal.dk>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Mads Ynddal <m.ynddal@samsung.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Mads Ynddal <m.ynddal@samsung.com>
Message-id: 20230619140216.402530-1-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c