arm-trusted-firmware/plat/qemu/common
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
..
aarch32 Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
aarch64 qemu/aarch64/plat_helpers.S : calculate the position shift 2021-01-19 18:35:55 +00:00
include qemu: introducing sub-platforms to qemu platform 2019-09-18 15:57:17 +02:00
sp_min build(qemu): use xlat tables v2 directly 2023-11-08 13:22:06 +02:00
trp feat(qemu): support TRP for RME 2024-01-08 12:39:32 +00:00
common.mk Merge "feat(qemu): allow ARM_ARCH_MAJOR/MINOR override" into integration 2024-04-23 10:42:01 +02:00
qemu_bl1_setup.c feat(qemu): make coherent memory section optional 2023-03-12 21:08:08 +08:00
qemu_bl2_mem_params_desc.c feat(qemu): load and run RMM image 2024-01-08 12:38:31 +00:00
qemu_bl2_setup.c refactor(cpufeat): add macro to simplify is_feat_xx_present 2024-05-02 12:16:16 -05:00
qemu_bl31_setup.c refactor(qemu): do not hardcode counter frequency 2024-04-22 17:33:36 +02:00
qemu_common.c feat(qemu): update to manifest v0.3 2024-04-23 10:20:11 +01:00
qemu_console.c pl011: Use generic console_t data structure 2020-02-25 09:34:38 +00:00
qemu_gicv2.c qemu: Implement PSCI_CPU_OFF. 2020-01-29 10:50:25 +00:00
qemu_gicv3.c qemu: Implement PSCI_CPU_OFF. 2020-01-29 10:50:25 +00:00
qemu_image_load.c feat(qemu): implement firmware handoff on qemu 2023-09-27 11:45:00 -07:00
qemu_io_storage.c feat(qemu): load and run RMM image 2024-01-08 12:38:31 +00:00
qemu_plat_attest_token.c refactor(qemu): change all occurrences of RSS to RSE 2024-04-22 15:44:38 +02:00
qemu_pm.c fix(plat/qemu): reboot/shutdown with low to high gpio 2021-10-11 17:33:29 +03:00
qemu_private.h build(qemu): use xlat tables v2 directly 2023-11-08 13:22:06 +02:00
qemu_realm_attest_key.c refactor(qemu): change all occurrences of RSS to RSE 2024-04-22 15:44:38 +02:00
qemu_rotpk.S qemu: introducing sub-platforms to qemu platform 2019-09-18 15:57:17 +02:00
qemu_sdei.c feat(plat/qemu): add sdei support for QEMU 2023-06-18 21:12:40 +08:00
qemu_spm.c build(qemu): use xlat tables v2 directly 2023-11-08 13:22:06 +02:00
qemu_stack_protector.c refactor(cpufeat): enable FEAT_RNG for FEAT_STATE_CHECKED 2023-03-22 13:33:22 +00:00
qemu_trusted_boot.c feat(qemu): add support for measured boot 2022-04-28 14:55:36 +01:00
topology.c qemu: introducing sub-platforms to qemu platform 2019-09-18 15:57:17 +02:00