]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64/sysreg: Allow a 'Mapping' descriptor for system registers
authorMarc Zyngier <maz@kernel.org>
Thu, 19 Dec 2024 17:33:47 +0000 (17:33 +0000)
committerWill Deacon <will@kernel.org>
Thu, 19 Dec 2024 18:00:58 +0000 (18:00 +0000)
commit078bc96539c33cf459370526a2d3bf922ff5ec2a
treecc47eb57b713e44588429a694643dc6bf79d9357
parente52163df77215c991cf4b6439f64c6331fd7dbfb
arm64/sysreg: Allow a 'Mapping' descriptor for system registers

*EL02 and *_EL12 system registers are actually only accessors for
EL0 and EL1 registers accessed from EL2 when HCR_EL2.E2H==1. They
do not have fields of their own.

To that effect, introduce a 'Mapping' entry, describing which
system register an _EL12 register maps to.

Implementation wise, this is handled the same was as Fields,
which ls only a comment.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241219173351.1123087-2-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/tools/gen-sysreg.awk
arch/arm64/tools/sysreg