diff options
author | Andre Przywara <andre.przywara@arm.com> | 2022-11-10 14:28:01 +0000 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2023-01-11 16:02:58 +0000 |
commit | ce4859554c64c9048c86df44a96e93f697df2207 (patch) | |
tree | 440f64c348ecac9df95b49aa2c1b6733c0aeb2fd /common | |
parent | b45dd74e3a1b125eb231a873c663e92da797b7fa (diff) | |
download | arm-trusted-firmware-ce4859554c64c9048c86df44a96e93f697df2207.tar.gz |
refactor(cpufeat): decouple FGT feature detection and build flags
Split the feature check for FEAT_FGT into two parts:
- A boolean function that just evaluates whether the feature is usable.
This takes build time flags into account, and only evaluates the CPU
feature ID registers when the flexible FEAT_STATE_CHECK method is
used.
- A "raw" function that returns the unfiltered CPU feature ID register.
Change the callers where needed, to give them the version they actually
want.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Change-Id: I9a041132d280451f5d9f653a62904f603b2a916d
Diffstat (limited to 'common')
-rw-r--r-- | common/feat_detect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/feat_detect.c b/common/feat_detect.c index 21dd35d4e..cbbee9771 100644 --- a/common/feat_detect.c +++ b/common/feat_detect.c @@ -346,7 +346,7 @@ void detect_arch_features(void) /* v8.6 features */ read_feat_amuv1p1(); - check_feature(ENABLE_FEAT_FGT, is_armv8_6_fgt_present(), "FGT"); + check_feature(ENABLE_FEAT_FGT, read_feat_fgt_id_field(), "FGT"); read_feat_ecv(); read_feat_twed(); |