]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64/sysreg: Get rid of the TCR2_EL1x SysregFields
authorMarc Zyngier <maz@kernel.org>
Thu, 19 Dec 2024 17:33:48 +0000 (17:33 +0000)
committerWill Deacon <will@kernel.org>
Thu, 19 Dec 2024 18:00:58 +0000 (18:00 +0000)
commit7052e808c44638ed52187f2403df6ed941e1adfa
tree36c9a9c810fd9b157c257ef358faeec25daae917
parent078bc96539c33cf459370526a2d3bf922ff5ec2a
arm64/sysreg: Get rid of the TCR2_EL1x SysregFields

TCR2_EL1x is a pretty bizarre construct, as it is shared between
TCR2_EL1 and TCR2_EL12. But the latter is obviously only an
accessor to the former.

In order to make things more consistent, upgrade TCR2_EL1x to
a full-blown sysreg definition for TCR2_EL1, and describe TCR2_EL12
as a mapping to TCR2_EL1.

This results in a couple of minor changes to the actual code.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241219173351.1123087-3-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c
arch/arm64/kvm/at.c
arch/arm64/mm/proc.S
arch/arm64/tools/sysreg