commit | 773d62bd1f80c7cd2417e9b5271b44751c35c855 | [log] [tgz] |
---|---|---|
author | Arvind Ram Prakash <arvind.ramprakash@arm.com> | Mon Jun 23 15:21:44 2025 -0500 |
committer | Arvind Ram Prakash <arvind.ramprakash@arm.com> | Wed Jul 09 10:16:16 2025 -0500 |
tree | 49a4cdaa9879c6fbab36b82f1a23d3c3f7332846 | |
parent | ab1d33d8e3a505ff820d3033ed84f4217499b23d [diff] [blame] |
feat(cpufeat): add support for FEAT_FGWTE3 Enable write traps for key EL3 system registers as per FEAT_FGWTE3, ensuring their values remain unchanged after boot. Excluded Registers: MDCR_EL3 and MPAM3_EL3: Not trapped as they are part of the EL3 context. SCTLR_EL3: Not trapped since it is overwritten during powerdown sequence(Included when HW_ASSISTED_COHERENCY=1) TPIDR_EL3: Excluded due to its use in crash reporting(It is included when CRASH_REPORTING=0) Reference: https://developer.arm.com/documentation/ddi0601/2025-06/AArch64-Registers/FGWTE3-EL3--Fine-Grained-Write-Traps-EL3 Change-Id: Idcb32aaac7d65a0b0e5c90571af00e01a4e9edb1 Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com>
diff --git a/make_helpers/arch_features.mk b/make_helpers/arch_features.mk index a6fd6be..8bcf866 100644 --- a/make_helpers/arch_features.mk +++ b/make_helpers/arch_features.mk
@@ -437,3 +437,6 @@ # Flag to enable access to Guarded Control Stack (FEAT_GCS). ENABLE_FEAT_GCS ?= 0 + +# Flag to enable Fine Grained Write Traps (FEAT_FGWTE3) for EL3. +ENABLE_FEAT_FGWTE3 ?= 0