diff options
author | Andrew Jones | 2019-10-31 15:27:28 +0100 |
---|---|---|
committer | Peter Maydell | 2019-11-01 21:40:59 +0100 |
commit | 73234775ad61892409ef9cbde9100b3bdee8a70f (patch) | |
tree | 67b1b028c22a8bc4c3e4f251ab6308113000c558 /target/arm/monitor.c | |
parent | tests: arm: Introduce cpu feature tests (diff) | |
download | qemu-73234775ad61892409ef9cbde9100b3bdee8a70f.tar.gz qemu-73234775ad61892409ef9cbde9100b3bdee8a70f.tar.xz qemu-73234775ad61892409ef9cbde9100b3bdee8a70f.zip |
target/arm: Allow SVE to be disabled via a CPU property
Since 97a28b0eeac14 ("target/arm: Allow VFP and Neon to be disabled via
a CPU property") we can disable the 'max' cpu model's VFP and neon
features, but there's no way to disable SVE. Add the 'sve=on|off'
property to give it that flexibility. We also rename
cpu_max_get/set_sve_vq to cpu_max_get/set_sve_max_vq in order for them
to follow the typical *_get/set_<property-name> pattern.
Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Reviewed-by: Beata Michalska <beata.michalska@linaro.org>
Message-id: 20191031142734.8590-4-drjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/monitor.c')
-rw-r--r-- | target/arm/monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/monitor.c b/target/arm/monitor.c index 560970de7f..2209b27b9a 100644 --- a/target/arm/monitor.c +++ b/target/arm/monitor.c @@ -97,7 +97,7 @@ GICCapabilityList *qmp_query_gic_capabilities(Error **errp) * then the order that considers those dependencies must be used. */ static const char *cpu_model_advertised_features[] = { - "aarch64", "pmu", + "aarch64", "pmu", "sve", NULL }; |