Merge "Use Speculation Barrier instruction for v8.5 cores" into integration

This commit is contained in:
Mark Dykes 2020-03-12 14:32:13 +00:00 committed by TrustedFirmware Code Review
commit 8fd41bb973
2 changed files with 11 additions and 1 deletions

View File

@ -108,11 +108,16 @@
#else
/*
* Macro for mitigating against speculative execution beyond ERET.
* If possible use Speculation Barrier instruction defined in ARMv8.5
*/
.macro exception_return
eret
#if ARM_ARCH_AT_LEAST(8, 5)
sb
#else
dsb nsh
isb
#endif
.endm
#endif

View File

@ -220,11 +220,16 @@
/*
* Macro for mitigating against speculative execution beyond ERET.
* If possible use Speculation Barrier instruction defined in ARMv8.5
*/
.macro exception_return
eret
dsb nsh
#if ARM_ARCH_AT_LEAST(8, 5)
sb
#else
dsb nsh
isb
#endif
.endm
#endif /* ASM_MACROS_S */