summaryrefslogtreecommitdiff
path: root/bl31
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2022-11-17 16:42:09 +0000
committerAndre Przywara <andre.przywara@arm.com>2023-02-27 18:04:14 +0000
commitf5360cfa819f13ed1caf1cfb774a876bc3f29377 (patch)
tree1ea667f8774052eef5aa98abf063f10a6cbcc086 /bl31
parentde8c489247458c00f7b48301fb5c5273c7a628fc (diff)
downloadarm-trusted-firmware-f5360cfa819f13ed1caf1cfb774a876bc3f29377.tar.gz
refactor(trbe): enable FEAT_TRBE for FEAT_STATE_CHECKED
At the moment we only support FEAT_TRBE to be either unconditionally compiled in, or to be not supported at all. Add support for runtime detection (ENABLE_TRBE_FOR_NS=2), by splitting is_feat_trbe_present() into an ID register reading function and a second function to report the support status. That function considers both build time settings and runtime information (if needed), and is used before we access TRBE related registers. The FVP platform decided to compile in support unconditionally (=1), even though FEAT_TRBE is an ARMv9 feature, so is not available with the FVP model's default command line. Change that to the now supported dynamic option (=2), so the right decision can be made by the code at runtime. Change-Id: Iee7f88ea930119049543a8a4a105389997e7692c Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'bl31')
-rw-r--r--bl31/bl31.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/bl31/bl31.mk b/bl31/bl31.mk
index e6609fe86..4d2fc874d 100644
--- a/bl31/bl31.mk
+++ b/bl31/bl31.mk
@@ -112,7 +112,7 @@ ifeq (${ENABLE_MPAM_FOR_LOWER_ELS},1)
BL31_SOURCES += lib/extensions/mpam/mpam.c
endif
-ifeq (${ENABLE_TRBE_FOR_NS},1)
+ifneq (${ENABLE_TRBE_FOR_NS},0)
BL31_SOURCES += lib/extensions/trbe/trbe.c
endif