target/arm: Fix aarch64_sve_change_el for SME
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 13 Jul 2022 04:58:48 +0000 (10:28 +0530)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 18 Jul 2022 12:20:13 +0000 (13:20 +0100)
commit6a775fd6e0423e76d3e3cb751b4b468d68f19ca5
tree1eb264028298ce3e6cf145788151a63a0f8c0a21
parent6215113355a508c5e6d0a4337c79184d85eeed61
target/arm: Fix aarch64_sve_change_el for SME

We were only checking for SVE disabled and not taking into
account PSTATE.SM to check SME disabled, which resulted in
vectors being incorrectly truncated.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220713045848.217364-3-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c