target/arm: Add sve-default-vector-length cpu property
commitb3d52804c591b478ec0620253c2bd71e4ff87bb9
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 23 Jul 2021 20:33:44 +0000 (23 10:33 -1000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Jul 2021 09:57:40 +0000 (27 10:57 +0100)
tree287bbaa7f2a03b6e837dae465cee9d75b1118dd7
parentce440581c1446e56d911d83c9c3b760ae4f98b3e
target/arm: Add sve-default-vector-length cpu property

Mirror the behavour of /proc/sys/abi/sve_default_vector_length
under the real linux kernel.  We have no way of passing along
a real default across exec like the kernel can, but this is a
decent way of adjusting the startup vector length of a process.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/482
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20210723203344.968563-4-richard.henderson@linaro.org
[PMM: tweaked docs formatting, document -1 special-case,
 added fixup patch from RTH mentioning QEMU's maximum veclen.]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
docs/system/arm/cpu-features.rst
target/arm/cpu.c
target/arm/cpu.h
target/arm/cpu64.c