KVM: arm64: Remove AA64ZFR0_EL1 accessors
authorAndrew Jones <drjones@redhat.com>
Thu, 5 Nov 2020 09:10:22 +0000 (10:10 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 6 Nov 2020 16:00:29 +0000 (16:00 +0000)
commitc512298eed0360923d0cbc4a1f30bc0509af0d50
tree8899c72cf62417294a1b52262b13e7d3d325ec1c
parent912dee572691ffb2b387dd8b4f183d549a6b24d1
KVM: arm64: Remove AA64ZFR0_EL1 accessors

The AA64ZFR0_EL1 accessors are just the general accessors with
its visibility function open-coded. It also skips the if-else
chain in read_id_reg, but there's no reason not to go there.
Indeed consolidating ID register accessors and removing lines
of code make it worthwhile.

Remove the AA64ZFR0_EL1 accessors, replacing them with the
general accessors for sanitized ID registers.

No functional change intended.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201105091022.15373-5-drjones@redhat.com
arch/arm64/kvm/sys_regs.c