Skip to content

Commit

Permalink
target/arm: Set ID_PFR2.SSBS to 1 for "max" 32-bit CPU
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rebecca Cran authored and pm215 committed Mar 5, 2021
1 parent 89455d1 commit ed84a60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target/arm/cpu.c
Expand Up @@ -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
}
Expand Down

0 comments on commit ed84a60

Please sign in to comment.