From 2b0bc4e028a75d75c6d6942ddd404ef331db29be Mon Sep 17 00:00:00 2001 From: Jayanth Dodderi Chidanand Date: Tue, 7 Mar 2023 10:43:19 +0000 Subject: feat(cpufeat): enable FEAT_SVE for FEAT_STATE_CHECKED Add support for runtime detection (ENABLE_SVE_FOR_NS=2), by splitting sve_supported() 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 do SVE specific setup. Change the FVP platform default to the now supported dynamic option (=2), so the right decision can be made by the code at runtime. Change-Id: I1caaba2216e8e2a651452254944a003607503216 Signed-off-by: Jayanth Dodderi Chidanand --- make_helpers/defaults.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make_helpers') diff --git a/make_helpers/defaults.mk b/make_helpers/defaults.mk index ef917f65b..63617b2ae 100644 --- a/make_helpers/defaults.mk +++ b/make_helpers/defaults.mk @@ -373,7 +373,7 @@ ENABLE_AMU_FCONF := 0 AMU_RESTRICT_COUNTERS := 0 # Enable SVE for non-secure world by default -ENABLE_SVE_FOR_NS := 1 +ENABLE_SVE_FOR_NS := 2 # SVE is only supported on AArch64 so disable it on AArch32. ifeq (${ARCH},aarch32) override ENABLE_SVE_FOR_NS := 0 -- cgit v1.2.1