summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBoyan Karatotev <boyan.karatotev@arm.com>2026-02-06 16:18:46 -0600
committerBoyan Karatotev <boyan.karatotev@arm.com>2026-06-22 14:37:49 +0100
commitd7aa847231d6f27cb8505d2f24d45af3bb70a08c (patch)
treee1c2d6e13a4e922860902f592ab905a722f1b860 /Makefile
parent1ae9aeb925d3703a9068f98e37ef5a3834445a7a (diff)
downloadarm-trusted-firmware-d7aa847231d6f27cb8505d2f24d45af3bb70a08c.tar.gz
arm-trusted-firmware-d7aa847231d6f27cb8505d2f24d45af3bb70a08c.zip
feat(cpufeat): add support for FEAT_BRBEv1p1
Add support for Branch Record Buffer Extension v1.1. FEAT_BRBEv1p1 introduces MDCR_EL3.{E3BREW, E3BREC} which allow for branch recording at EL3. This patch introduces helpers to start and stop recording as well as dumping the branch record buffer to the console. The helpers make sure that starting and stopping branch recording saves and restores the lower EL BRBE context. This should help prevent security and BRBE inconsistency issues if an actual payload is running along side this. As this is a debug feature, no calls are expected to be committed to the repository. Note that this feature is marked as experimental. That is because firmware does not need to support FEAT_BRBEv1p1 for the system to be fully functional. As such, this flag may be renamed or removed in future iterations once a precise usage model is arrived at. Change-Id: Ibf2f1a5e9d36f759d7b381f06103d39debe23428 Co-developed-by: Arvind Ram Prakash <arvind.ramprakash@arm.com> Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 90752de5a..d32a9798a 100644
--- a/Makefile
+++ b/Makefile
@@ -665,6 +665,7 @@ $(eval $(call assert_numerics,\
CTX_INCLUDE_NEVE_REGS \
DISABLE_MTPMU \
ENABLE_BRBE_FOR_NS \
+ ENABLE_FEAT_BRBEV1P1 \
ENABLE_TRBE_FOR_NS \
ENABLE_BTI \
ENABLE_PAUTH \
@@ -871,6 +872,7 @@ $(eval $(call add_defines,\
NR_OF_IMAGES_IN_FW_BANK \
PSA_FWU_SUPPORT \
PSA_FWU_METADATA_FW_STORE_DESC \
+ ENABLE_FEAT_BRBEV1P1 \
ENABLE_BRBE_FOR_NS \
ENABLE_TRBE_FOR_NS \
ENABLE_SYS_REG_TRACE_FOR_NS \