xen/arm: Use READ_SYSREG instead of 32/64 versions
authorBertrand Marquis <bertrand.marquis@arm.com>
Thu, 17 Dec 2020 15:38:01 +0000 (15:38 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 4 Jan 2021 19:22:49 +0000 (11:22 -0800)
commita9f1f03b2710f5ce84f69c1c4516349531053fac
tree6c28d0978ffaf093a536db3d62a15fba61ef66c8
parent7ba2ab495be54f608cb47440e1497b2795bd301a
xen/arm: Use READ_SYSREG instead of 32/64 versions

Modify identify_cpu function to use READ_SYSREG instead of READ_SYSREG32
or READ_SYSREG64.

All aarch32 specific registers (for example ID_PFR0_EL1) are 64bit when
accessed from aarch64 with upper bits read as 0, so it is right to
access them as 64bit registers on a 64bit platform.

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/cpufeature.c