Skip to content

Commit 1c8a740

Browse files
hrwMichael Tokarev
authored andcommitted
target/arm: Disable SVE extensions when SVE is disabled
Cc: [email protected] Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2304 Reported-by: Marcin Juszkiewicz <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Signed-off-by: Marcin Juszkiewicz <[email protected]> Message-id: [email protected] Reviewed-by: Peter Maydell <[email protected]> Signed-off-by: Peter Maydell <[email protected]> (cherry picked from commit daf9748) Signed-off-by: Michael Tokarev <[email protected]>
1 parent 65b44e5 commit 1c8a740

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

target/arm/cpu64.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ void arm_cpu_sve_finalize(ARMCPU *cpu, Error **errp)
109109
* No explicit bits enabled, and no implicit bits from sve-max-vq.
110110
*/
111111
if (!cpu_isar_feature(aa64_sve, cpu)) {
112-
/* SVE is disabled and so are all vector lengths. Good. */
112+
/*
113+
* SVE is disabled and so are all vector lengths. Good.
114+
* Disable all SVE extensions as well.
115+
*/
116+
cpu->isar.id_aa64zfr0 = 0;
113117
return;
114118
}
115119

0 commit comments

Comments
 (0)