target/arm: Set ID_PFR2.SSBS to 1 for max 32-bit CPU

Enable FEAT_SSBS for the "max" 32-bit CPU.

Backports ed84a60ca80c403749c1fc1bab27c85d8edba39d
This commit is contained in:
Rebecca Cran 2021-03-08 11:26:59 -05:00 committed by Lioncash
parent 0f7620f7cc
commit 2e508af5d5

View file

@ -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