From 2e508af5d593ece25616a33af748298641fafd79 Mon Sep 17 00:00:00 2001 From: Rebecca Cran Date: Mon, 8 Mar 2021 11:26:59 -0500 Subject: [PATCH] target/arm: Set ID_PFR2.SSBS to 1 for max 32-bit CPU Enable FEAT_SSBS for the "max" 32-bit CPU. Backports ed84a60ca80c403749c1fc1bab27c85d8edba39d --- qemu/target/arm/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qemu/target/arm/cpu.c b/qemu/target/arm/cpu.c index 989e1006..9fc65c76 100644 --- a/qemu/target/arm/cpu.c +++ b/qemu/target/arm/cpu.c @@ -2034,6 +2034,10 @@ static void arm_max_initfn(struct uc_struct *uc, Object *obj, void *opaque) t = cpu->isar.id_pfr0; t = FIELD_DP32(t, ID_PFR0, DIT, 1); cpu->isar.id_pfr0 = t; + + t = cpu->isar.id_pfr2; + t = FIELD_DP32(t, ID_PFR2, SSBS, 1); + cpu->isar.id_pfr2 = t; } } #endif