]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(cpufeat): decouple FGT feature detection and build flags
authorAndre Przywara <andre.przywara@arm.com>
Thu, 10 Nov 2022 14:28:01 +0000 (14:28 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Wed, 11 Jan 2023 16:02:58 +0000 (16:02 +0000)
commitce4859554c64c9048c86df44a96e93f697df2207
tree440f64c348ecac9df95b49aa2c1b6733c0aeb2fd
parentb45dd74e3a1b125eb231a873c663e92da797b7fa
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
common/feat_detect.c
include/arch/aarch64/arch_features.h
lib/el3_runtime/aarch64/context_mgmt.c