linux-user/aarch64: Introduce sve_vq
commit8b599e5c0274cd5e4a33be6a10d6cd04631a74d1
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 8 Jun 2022 18:38:55 +0000 (8 19:38 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 8 Jun 2022 18:38:55 +0000 (8 19:38 +0100)
tree77485f0d17a566335f6733a1d15c48a369b627c1
parentf45ce4c35f5e0873bbbc3119eff8539610233b7e
linux-user/aarch64: Introduce sve_vq

Add an interface function to extract the digested vector length
rather than the raw zcr_el[1] value.  This fixes an incorrect
return from do_prctl_set_vl where we didn't take into account
the set of vector lengths supported by the cpu.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220607203306.657998-3-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/aarch64/signal.c
linux-user/aarch64/target_prctl.h
target/arm/cpu.h