commit | ecd9f0801113cb6df16f83720c3ebd10984e4d66 | [log] [tgz] |
---|---|---|
author | Boyan Karatotev <boyan.karatotev@arm.com> | Wed Oct 26 15:10:39 2022 +0100 |
committer | Boyan Karatotev <boyan.karatotev@arm.com> | Fri Nov 11 12:14:53 2022 +0000 |
tree | f19afb6a5ad790e73033500544574ed90f37646d | |
parent | 0efb37c9382c4ce585d716190c08107bb58845ff [diff] |
fix(pmu): add sensible default for MDCR_EL2 When TF-A is set to save and restore EL2 registers it initially zeroes all of them so that it does not leak any information. However, MDCR_EL2.HPMN of 0 is poorly defined when FEAT_HPMN0 is not implemented. Set it to its hardware reset value so that lower ELs don't inherit a wrong value. Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: I8055005ef9b6eaafefa13b62a0b41289079fdd23