bsps/arm: Invalidate branch predictors earlier

Make sure the branch predictors are invalidated before the first branch
is executed.

Update #4202.
This commit is contained in:
Sebastian Huber
2020-12-23 09:19:28 +01:00
parent 272534eb72
commit 76a1a53780
5 changed files with 11 additions and 5 deletions
@@ -141,8 +141,6 @@ BSP_START_TEXT_SECTION static inline void arm_a9mpcore_start_hook_0(void)
(volatile a9mpcore_scu *) BSP_ARM_A9MPCORE_SCU_BASE;
uint32_t cpu_id = arm_cortex_a9_get_multiprocessor_cpu_id();
arm_cp15_branch_predictor_invalidate_all();
if (cpu_id == 0) {
arm_a9mpcore_start_scu_enable(scu);
}