]> xenbits.xensource.com Git - xen.git/commit
arm: Modify type of actlr to register_t
authorMichal Orzel <michal.orzel@arm.com>
Wed, 5 May 2021 07:43:01 +0000 (09:43 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 16 Jul 2021 20:14:15 +0000 (13:14 -0700)
commit41e8d5d47f17a59b752aa2f47e45ff47a39fe485
tree3d9b1f9889fb1dccfe811ef4be12de046a1ad33c
parent27e08cb549500ef8e7ba112cf39bff0ad1e096a3
arm: Modify type of actlr to register_t

AArch64 registers are 64bit whereas AArch32 registers
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.
We should also use register_t type when reading sysregs
which can correspond to uint64_t or uint32_t.
Even though many AArch64 registers have upper 32bit reserved
it does not mean that they can't be widen in the future.

ACTLR_EL1 system register bits are implementation defined
which means it is possibly a latent bug on current HW as the CPU
implementer may already have decided to use the top 32bit.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
(cherry picked from commit b80470c84553808fef3a6803000ceee8a100e63c)
xen/arch/arm/domain.c
xen/include/asm-arm/domain.h