]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(spe): enable FEAT_SPE for FEAT_STATE_CHECKED
authorAndre Przywara <andre.przywara@arm.com>
Thu, 17 Nov 2022 16:42:09 +0000 (16:42 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 20 Mar 2023 13:37:36 +0000 (13:37 +0000)
commit6437a09a2db5774438fb1a95c508ed6b0a9f0ef2
tree831ab1562452ab1700c3e40684dd871fb4deb083
parent90118bb5c180198db3386c3e1f5be8e32707c2cc
refactor(spe): enable FEAT_SPE for FEAT_STATE_CHECKED

At the moment we only support FEAT_SPE to be either unconditionally
compiled in, or to be not supported at all.

Add support for runtime detection (ENABLE_SPE_FOR_NS=2), by splitting
is_armv8_2_feat_spe_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 SPE related registers.

Previously SPE was enabled unconditionally for all platforms, change
this now to the runtime detection version.

Change-Id: I830c094107ce6a398bf1f4aef7ffcb79d4f36552
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Makefile
bl31/bl31.mk
docs/getting_started/build-options.rst
include/arch/aarch32/arch_features.h
include/arch/aarch64/arch_features.h
include/lib/extensions/spe.h
lib/el3_runtime/aarch64/context_mgmt.c
lib/extensions/spe/spe.c
make_helpers/defaults.mk
plat/arm/board/arm_fpga/fpga_bl31_setup.c
plat/arm/board/fvp/fvp_pm.c