OSDN Git Service

target/arm: Set ID_PFR2.SSBS to 1 for "max" 32-bit CPU
authorRebecca Cran <rebecca@nuviainc.com>
Tue, 16 Feb 2021 22:45:43 +0000 (15:45 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 5 Mar 2021 15:17:34 +0000 (15:17 +0000)
Enable FEAT_SSBS for the "max" 32-bit CPU.

Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210216224543.16142-4-rebecca@nuviainc.com
[PMM: fix typo causing compilation failure]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c

index b8bc89e..058672c 100644 (file)
@@ -2217,6 +2217,10 @@ static void arm_max_initfn(Object *obj)
         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
 }