mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 06:19:56 +00:00
Apply variant 4 mitigation for Neoverse N1
This patch applies the new MSR instruction to directly set the PSTATE.SSBS bit which controls speculative loads. This new instruction is available at Neoverse N1 core so it's utilised. Change-Id: Iee18a8b042c90fdb72d2b98f364dcfbb17510728 Signed-off-by: John Tsichritzis <john.tsichritzis@arm.com>
This commit is contained in:
parent
620d9832f9
commit
8074448f09
2 changed files with 9 additions and 0 deletions
|
@ -843,4 +843,9 @@
|
||||||
#define DIT S3_3_C4_C2_5
|
#define DIT S3_3_C4_C2_5
|
||||||
#define DIT_BIT BIT(24)
|
#define DIT_BIT BIT(24)
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
* Armv8.5 - new MSR encoding to directly access PSTATE.SSBS field
|
||||||
|
******************************************************************************/
|
||||||
|
#define SSBS S3_3_C4_C2_6
|
||||||
|
|
||||||
#endif /* ARCH_H */
|
#endif /* ARCH_H */
|
||||||
|
|
|
@ -46,6 +46,10 @@ endfunc check_errata_1043202
|
||||||
|
|
||||||
func neoverse_n1_reset_func
|
func neoverse_n1_reset_func
|
||||||
mov x19, x30
|
mov x19, x30
|
||||||
|
|
||||||
|
/* Disables speculative loads */
|
||||||
|
msr SSBS, xzr
|
||||||
|
|
||||||
bl cpu_get_rev_var
|
bl cpu_get_rev_var
|
||||||
mov x18, x0
|
mov x18, x0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue