xen/arm64: Remove READ/WRITE_SYSREG32 helper macros
authorMichal Orzel <michal.orzel@arm.com>
Mon, 12 Jul 2021 08:53:29 +0000 (10:53 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 20 Jul 2021 20:00:23 +0000 (13:00 -0700)
commit57e761b60dc92e210caf3429b8956d908ba04ae9
tree637566741a5ab9bb66cc73f3706d9cc22cb48315
parent96e5ad4c476e70688295b3cfb537847a3351d6fd
xen/arm64: Remove READ/WRITE_SYSREG32 helper macros

AArch64 system registers are 64bit whereas AArch32 ones
are 32bit or 64bit. MSR/MRS are expecting 64bit values thus
we should get rid of helpers READ/WRITE_SYSREG32
in favour of using READ/WRITE_SYSREG.

The last place in code making use of READ/WRITE_SYSREG32
on arm64 is in TVM_REG macro defining functions vreg_emulate_<register>.
Implement a macro WRITE_SYSREG_SZ which expands as follows:
-on arm64: WRITE_SYSREG
-on arm32: WRITE_SYSREG{32/64}

As there are no other places in the code using these helpers
on arm64 - remove them.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vcpreg.c
xen/include/asm-arm/arm64/sysregs.h