Refactor Statistical Profiling Extensions implementation
Factor out SPE operations in a separate file.  Use the publish
subscribe framework to drain the SPE buffers before entering secure
world.  Additionally, enable SPE before entering normal world.

A side effect of this change is that the profiling buffers are now
only drained when a transition from normal world to secure world
happens.  Previously they were drained also on return from secure
world, which is unnecessary as SPE is not supported in S-EL1.

Change-Id: I17582c689b4b525770dbb6db098b3a0b5777b70a
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
1 parent c776dee commit 281a08cc6438d868bd1b0bcf19bc6c95207b42ac
@Dimitris Papastamos Dimitris Papastamos authored on 13 Oct 2017
Showing 13 changed files
View
Makefile
View
bl31/bl31.mk
View
include/common/aarch64/el3_common_macros.S
View
include/lib/aarch64/arch.h
View
include/lib/aarch64/arch_helpers.h
View
include/lib/el3_runtime/aarch64/context.h
View
include/lib/extensions/spe.h 0 → 100644
View
include/plat/arm/common/plat_arm.h
View
lib/el3_runtime/aarch64/context.S
View
lib/el3_runtime/aarch64/context_mgmt.c
View
lib/extensions/spe/spe.c 0 → 100644
View
plat/arm/board/fvp/fvp_pm.c
View
plat/arm/common/aarch64/arm_helpers.S