diff options
| author | Johann Scott <johann.scott@arm.com> | 2026-07-17 15:01:37 +0000 |
|---|---|---|
| committer | Johann Scott <johann.scott@arm.com> | 2026-07-28 12:41:23 +0000 |
| commit | ff96c4222f621339efac74b7da35f80cc7485d01 (patch) | |
| tree | 7a2165b839b57ada9b7b4eecec9728cab84a6f71 /make_helpers | |
| parent | 84c509ceca71a31d82517157ea56447ba8dbf2ea (diff) | |
| download | arm-trusted-firmware-ff96c4222f621339efac74b7da35f80cc7485d01.tar.gz arm-trusted-firmware-ff96c4222f621339efac74b7da35f80cc7485d01.zip | |
feat(cpufeat): add support for FEAT_TRBE_EXC
FEAT_TRBE_EXC adds support for reporting trace buffer management events
as TRBE profiling exceptions.
This feature can be found in the M.a version of the Arm ARM.
Change-Id: I148dacfb6445e769820dd265a7d64e3b8c6e8ca2
Signed-off-by: Johann Scott <johann.scott@arm.com>
Diffstat (limited to 'make_helpers')
| -rw-r--r-- | make_helpers/constraints.mk | 9 | ||||
| -rw-r--r-- | make_helpers/defaults.mk | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/make_helpers/constraints.mk b/make_helpers/constraints.mk index 2cd4ef658..c73be3df6 100644 --- a/make_helpers/constraints.mk +++ b/make_helpers/constraints.mk @@ -387,6 +387,9 @@ ifeq (${ARCH},aarch32) ifneq (${ENABLE_FEAT_SRMASK},0) $(error "ENABLE_FEAT_SRMASK cannot be used with ARCH=aarch32") endif + ifneq (${ENABLE_FEAT_TRBE_EXC},0) + $(error "ENABLE_FEAT_TRBE_EXC cannot be used with ARCH=aarch32") + endif endif #(ARCH=aarch32) ifneq (${ENABLE_FEAT_FPMR},0) @@ -556,6 +559,12 @@ ifneq (${ENABLE_FEAT_BRBEV1P1},0) $(warning ENABLE_FEAT_BRBEV1P1 is an experimental feature!) endif +ifneq (${ENABLE_FEAT_TRBE_EXC},0) + ifeq (${ENABLE_FEAT_TRBE},0) + $(error "ENABLE_FEAT_TRBE_EXC requires ENABLE_FEAT_TRBE") + endif +endif + # Handle all deprecated build options. ifeq (${ERROR_DEPRECATED}, 1) ifneq (${NS_TIMER_SWITCH},0) diff --git a/make_helpers/defaults.mk b/make_helpers/defaults.mk index 94bede55d..4cf0a04ff 100644 --- a/make_helpers/defaults.mk +++ b/make_helpers/defaults.mk @@ -842,4 +842,7 @@ ENABLE_FEAT_SPEV1P5 ?= 0 ENABLE_FEAT_IDTE3 ?= 0 # Flag to enable EL1 control register aliases and bitmasks (FEAT_SRMASK). -ENABLE_FEAT_SRMASK ?= 0
\ No newline at end of file +ENABLE_FEAT_SRMASK ?= 0 + +# Flag to enable reporting trace buffer events as profiling exceptions +ENABLE_FEAT_TRBE_EXC ?= 0
\ No newline at end of file |
