diff options
author | Richard Henderson | 2018-08-16 15:05:28 +0200 |
---|---|---|
committer | Peter Maydell | 2018-08-16 15:05:28 +0200 |
commit | adf92eab90e3f5f34c285da6d14d48952b7a8e72 (patch) | |
tree | b7001056fc891aab12aa36908a884de7e3555543 /target/arm/cpu.h | |
parent | target/arm: Dump SVE state if enabled (diff) | |
download | qemu-adf92eab90e3f5f34c285da6d14d48952b7a8e72.tar.gz qemu-adf92eab90e3f5f34c285da6d14d48952b7a8e72.tar.xz qemu-adf92eab90e3f5f34c285da6d14d48952b7a8e72.zip |
target/arm: Add sve-max-vq cpu property to -cpu max
This allows the default (and maximum) vector length to be set
from the command-line. Which is extraordinarily helpful in
debugging problems depending on vector length without having to
bake knowledge of PR_SET_SVE_VL into every guest binary.
Cc: qemu-stable@nongnu.org (3.0.1)
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r-- | target/arm/cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 4289c33ef4..a81f3d83cd 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -857,6 +857,9 @@ struct ARMCPU { /* Used to synchronize KVM and QEMU in-kernel device levels */ uint8_t device_irq_level; + + /* Used to set the maximum vector length the cpu will support. */ + uint32_t sve_max_vq; }; static inline ARMCPU *arm_env_get_cpu(CPUARMState *env) |