| 2e4e94bf | 16-Aug-2017 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: default enable program flow prediction on ARMv7 cores
Introduce CFG_ENABLE_SCTLR_Z to enable SCTLR[Z] from the generic boot. SCTLR[Z] enables program flow prediction support from the core.
Ea
core: default enable program flow prediction on ARMv7 cores
Introduce CFG_ENABLE_SCTLR_Z to enable SCTLR[Z] from the generic boot. SCTLR[Z] enables program flow prediction support from the core.
Early branch prediction may be unsafe against uncontrolled memory prefetches that could hit some hard memory access control firewalls. It is usually safer to enable after the mmu is enabled.
CFG_ENABLE_SCTLR_Z allows to use vanilla op-tee on development board to exercises benchmark and performance tests over the op-tee system.
This feature is no expected on ARMv8 architectures and some recent ARMv7 architectures since program flow prediction enable is tight to mmu enable.
Suggested-by: Jangseop Shin <jsshin@sor.snu.ac.kr> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|