[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-7.2.12 23/29] target/arm: Disable SVE extensions when SVE is dis
From: |
Michael Tokarev |
Subject: |
[Stable-7.2.12 23/29] target/arm: Disable SVE extensions when SVE is disabled |
Date: |
Fri, 7 Jun 2024 22:12:06 +0300 |
From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2304
Reported-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Message-id: 20240526204551.553282-1-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit daf9748ac002ec35258e5986b6257961fd04b565)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c
index 3d74f134f5..037e9d9feb 100644
--- a/target/arm/cpu64.c
+++ b/target/arm/cpu64.c
@@ -190,7 +190,11 @@ void arm_cpu_sve_finalize(ARMCPU *cpu, Error **errp)
* No explicit bits enabled, and no implicit bits from sve-max-vq.
*/
if (!cpu_isar_feature(aa64_sve, cpu)) {
- /* SVE is disabled and so are all vector lengths. Good. */
+ /*
+ * SVE is disabled and so are all vector lengths. Good.
+ * Disable all SVE extensions as well.
+ */
+ cpu->isar.id_aa64zfr0 = 0;
return;
}
--
2.39.2
- [Stable-7.2.12 00/29] Patch Round-up for stable 7.2.12, frozen at 2024-06-07, Michael Tokarev, 2024/06/07
- [Stable-7.2.12 20/29] gitlab: Update msys2-64bit runner tags, Michael Tokarev, 2024/06/07
- [Stable-7.2.12 21/29] hvf: arm: Fix encodings for ID_AA64PFR1_EL1 and debug System registers, Michael Tokarev, 2024/06/07
- [Stable-7.2.12 23/29] target/arm: Disable SVE extensions when SVE is disabled,
Michael Tokarev <=
- [Stable-7.2.12 22/29] hw/intc/arm_gic: Fix handling of NS view of GICC_APR<n>, Michael Tokarev, 2024/06/07
- [Stable-7.2.12 25/29] disas/riscv: Decode all of the pmpcfg and pmpaddr CSRs, Michael Tokarev, 2024/06/07
- [Stable-7.2.12 24/29] hw/intc/riscv_aplic: APLICs should add child earlier than realize, Michael Tokarev, 2024/06/07
- [Stable-7.2.12 28/29] ui/sdl2: Allow host to power down screen, Michael Tokarev, 2024/06/07
- [Stable-7.2.12 26/29] target/i386: fix xsave.flat from kvm-unit-tests, Michael Tokarev, 2024/06/07
- [Stable-7.2.12 27/29] target/i386: fix SSE and SSE2 feature check, Michael Tokarev, 2024/06/07
- [Stable-7.2.12 29/29] target/loongarch: fix a wrong print in cpu dump, Michael Tokarev, 2024/06/07
- Re: [Stable-7.2.12 00/29] Patch Round-up for stable 7.2.12, frozen at 2024-06-07, Eric Blake, 2024/06/10