arm-trusted-firmware/bl31
Sona Mathew aaaf2cc313 refactor(cpufeat): add macro to simplify is_feat_xx_present
In this patch, we are trying to introduce the wrapper macro
CREATE_FEATURE_PRESENT to get the following capability and
align it for all the features:

-> is_feat_xx_present(): Does Hardware implement the feature.
-> uniformity in naming the function across multiple features.
-> improved readability

The is_feat_xx_present() is implemented to check if the hardware
implements the feature and does not take into account the
ENABLE_FEAT_XXX flag enabled/disabled in software.

- CREATE_FEATURE_PRESENT(name, idreg, shift, mask, idval)
The wrapper macro reduces the function to a single line and
creates the is_feat_xx_present function that checks the
id register based on the shift and mask values and compares
this against a determined idvalue.

Change-Id: I7b91d2c9c6fbe55f94c693aa1b2c50be54fb9ecc
Signed-off-by: Sona Mathew <sonarebecca.mathew@arm.com>
2024-05-02 12:16:16 -05:00
..
aarch64 feat(el3-runtime): introduce UNDEF injection to lower EL 2024-02-28 12:47:29 +00:00
bl31.ld.S feat(build): check that .text section starts at page boundary 2023-11-06 23:22:25 +03:00
bl31.mk build: use toolchain identifiers in conditions 2024-02-06 11:14:52 +00:00
bl31_context_mgmt.c feat(rme): add context management changes for FEAT_RME 2021-10-05 18:41:35 +02:00
bl31_main.c fix(misra): fix MISRA defects 2024-03-07 09:38:27 -06:00
bl31_traps.c refactor(cpufeat): add macro to simplify is_feat_xx_present 2024-05-02 12:16:16 -05:00
ehf.c fix(gic600): workaround for Part 1 of GIC600 erratum 2384374 2024-03-06 14:16:35 -06:00
interrupt_mgmt.c fix(misra): fix MISRA defects 2024-03-07 09:38:27 -06:00