summaryrefslogtreecommitdiffstats
path: root/target/arm/cpu.h
diff options
context:
space:
mode:
authorPeter Maydell2019-05-17 19:40:43 +0200
committerPeter Maydell2019-06-17 16:12:25 +0200
commit97a28b0eeac14a4a7326d583b745c555fa1f1da6 (patch)
tree17fb9fb6a60ffb09c34b51c10e4c072f724227b8 /target/arm/cpu.h
parenthw/arm/boot: Honour image size field in AArch64 Image format kernels (diff)
downloadqemu-97a28b0eeac14a4a7326d583b745c555fa1f1da6.tar.gz
qemu-97a28b0eeac14a4a7326d583b745c555fa1f1da6.tar.xz
qemu-97a28b0eeac14a4a7326d583b745c555fa1f1da6.zip
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
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r--target/arm/cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 9229862421..cf2496aeee 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -786,6 +786,10 @@ struct ARMCPU {
bool has_el3;
/* CPU has PMU (Performance Monitor Unit) */
bool has_pmu;
+ /* CPU has VFP */
+ bool has_vfp;
+ /* CPU has Neon */
+ bool has_neon;
/* CPU has memory protection unit */
bool has_mpu;