]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: sysreg: Replace HFGxTR_EL2 with HFG{R,W}TR_EL2
authorMarc Zyngier <maz@kernel.org>
Tue, 11 Mar 2025 14:44:30 +0000 (14:44 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 6 May 2025 16:35:03 +0000 (17:35 +0100)
commit0f013a524b240e7d67dc94d083a0d3ab72516ea3
tree51329e21eb039648513e0398dcb73b3bc20cfc1d
parentd0f39259eff447fb4518777c36c7dffcf8b4ef9e
arm64: sysreg: Replace HFGxTR_EL2 with HFG{R,W}TR_EL2

Treating HFGRTR_EL2 and HFGWTR_EL2 identically was a mistake.
It makes things hard to reason about, has the potential to
introduce bugs by giving a meaning to bits that are really reserved,
and is in general a bad description of the architecture.

Given that #defines are cheap, let's describe both registers as
intended by the architecture, and repaint all the existing uses.

Yes, this is painful.

The registers themselves are generated from the JSON file in
an automated way.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/el2_setup.h
arch/arm64/include/asm/kvm_arm.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/emulate-nested.c
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/vgic-v3-sr.c
arch/arm64/kvm/nested.c
arch/arm64/kvm/sys_regs.c
arch/arm64/tools/sysreg