]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/cpu.c
target/arm: Allow VFP and Neon to be disabled via a CPU property
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 17 May 2019 17:40:43 +0000 (18:40 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Jun 2019 14:12:25 +0000 (15:12 +0100)
commit97a28b0eeac14a4a7326d583b745c555fa1f1da6
tree17fb9fb6a60ffb09c34b51c10e4c072f724227b8
parent5e6dbe1e8cbbe4b6f7407dda2c021cbe80a8ec02
target/arm: Allow VFP and Neon to be disabled via a CPU property

Allow VFP and neon to be disabled via a CPU property. As with
the "pmu" property, we only allow these features to be removed
from CPUs which have it by default, not added to CPUs which
don't have it.

The primary motivation here is to be able to optionally
create Cortex-M33 CPUs with no FPU, but we provide switches
for both VFP and Neon because the two interact:
 * AArch64 can't have one without the other
 * Some ID register fields only change if both are disabled

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20190517174046.11146-2-peter.maydell@linaro.org
target/arm/cpu.c
target/arm/cpu.h