xen/arm: Use register_t type of cpuinfo entries
authorBertrand Marquis <bertrand.marquis@arm.com>
Mon, 15 Mar 2021 10:38:30 +0000 (10:38 +0000)
committerJulien Grall <jgrall@amazon.com>
Thu, 1 Apr 2021 16:12:05 +0000 (17:12 +0100)
commite650311d4ebfd5bdff1f689b237f790ac05e1cab
treed87faf4ab506bc63b6282b80e2aefca4089b84a1
parent60f0ba136d5a4c88377e28e5eb40606a7f9f6785
xen/arm: Use register_t type of cpuinfo entries

All cpu identification registers that we store in the cpuinfo structure
are 64bit on arm64 and 32bit on arm32 so storing the values in 32bit on
arm64 is removing the higher bits which might contain information in the
future.

This patch is changing the types in cpuinfo to register_t (which is
32bit on arm32 and 64bit on arm64) and adding the necessary paddings
inside the unions.
For consistency uint64_t entries are also changed to register_t on 64bit
systems.

It is also fixing all prints using directly the bits values from cpuinfo
to use PRIregister and adapt the printed value to print all bits
available on the architecture.

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/setup.c
xen/arch/arm/smpboot.c
xen/include/asm-arm/cpufeature.h