summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-04-20 18:14:32 +0100
committerMark Brown <broonie@kernel.org>2022-07-08 17:17:11 +0100
commitbebcf27f1c75f48cc129e8608cba113d0db32ef8 (patch)
treea40c0e4dcaa5f43ce0658a3da94158d2881c1e6c /Makefile
parente45ffa18d388b8ae0eea94901b4d2884839d2773 (diff)
downloadarm-trusted-firmware-bebcf27f1c75f48cc129e8608cba113d0db32ef8.tar.gz
feat(sve): support full SVE vector length
Currently the SVE code hard codes a maximum vector length of 512 bits when configuring SVE rather than the architecture supported maximum. While this is fine for current physical implementations the architecture allows for vector lengths up to 2048 bits and emulated implementations generally allow any length up to this maximum. Since there may be system specific reasons to limit the maximum vector length make the limit configurable, defaulting to the architecture maximum. The default should be suitable for most implementations since the hardware will limit the actual vector length selected to what is physically supported in the system. Signed-off-by: Mark Brown <broonie@kernel.org> Change-Id: I22c32c98a81c0cf9562411189d8a610a5b61ca12
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ee5e2e7a8..5916963b5 100644
--- a/Makefile
+++ b/Makefile
@@ -399,6 +399,8 @@ TF_CFLAGS += $(CPPFLAGS) $(TF_CFLAGS_$(ARCH)) \
-ffreestanding -fno-builtin -fno-common \
-Os -std=gnu99
+$(eval $(call add_define,SVE_VECTOR_LEN))
+
ifeq (${SANITIZE_UB},on)
TF_CFLAGS += -fsanitize=undefined -fno-sanitize-recover
endif
@@ -1085,6 +1087,7 @@ $(eval $(call assert_numerics,\
RAS_EXTENSION \
TWED_DELAY \
ENABLE_FEAT_TWED \
+ SVE_VECTOR_LEN \
)))
ifdef KEY_SIZE