Andrew Jones 0df9142d27 target/arm/cpu64: max cpu: Introduce sve<N> properties
Introduce cpu properties to give fine control over SVE vector lengths.
We introduce a property for each valid length up to the current
maximum supported, which is 2048-bits. The properties are named, e.g.
sve128, sve256, sve384, sve512, ..., where the number is the number of
bits. See the updates to docs/arm-cpu-features.rst for a description
of the semantics and for example uses.

Note, as sve-max-vq is still present and we'd like to be able to
support qmp_query_cpu_model_expansion with guests launched with e.g.
-cpu max,sve-max-vq=8 on their command lines, then we do allow
sve-max-vq and sve<N> properties to be provided at the same time, but
this is not recommended, and is why sve-max-vq is not mentioned in the
document.  If sve-max-vq is provided then it enables all lengths smaller
than and including the max and disables all lengths larger. It also has
the side-effect that no larger lengths may be enabled and that the max
itself cannot be disabled. Smaller non-power-of-two lengths may,
however, be disabled, e.g. -cpu max,sve-max-vq=4,sve384=off provides a
guest the vector lengths 128, 256, and 512 bits.

This patch has been co-authored with Richard Henderson, who reworked
the target/arm/cpu64.c changes in order to push all the validation and
auto-enabling/disabling steps into the finalizer, resulting in a nice
LOC reduction.

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-5-drjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2019-11-01 20:40:59 +00:00
..
2017-07-24 12:42:55 +01:00
2019-08-16 13:31:52 +02:00
2016-06-07 18:19:23 +03:00
2017-10-16 20:57:13 +03:00
2019-10-17 17:02:32 -04:00
2016-10-26 08:29:01 -07:00
2019-09-10 08:58:43 +02:00
2019-10-28 15:12:38 +00:00
2019-09-11 08:46:17 +02:00
2019-08-21 16:29:57 +02:00
2019-10-28 15:12:38 +00:00
2018-09-26 08:55:54 -07:00
2019-04-18 22:18:59 +02:00
2019-10-28 15:12:38 +00:00
2019-08-16 13:31:52 +02:00
2018-01-16 14:54:50 +01:00
2018-08-23 18:46:25 +02:00
2019-09-16 17:13:06 +02:00
2016-02-23 12:43:05 +00:00
2018-08-24 20:26:37 +02:00
2016-09-15 15:32:22 +03:00
2018-12-20 10:29:08 +01:00
2017-01-24 23:26:52 +03:00