xen/arm64: sysreg: Implement the 32-bit helpers using the 64-bit helpers
authorJulien Grall <julien.grall@arm.com>
Wed, 27 Mar 2019 18:45:25 +0000 (18:45 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 13 May 2019 10:28:03 +0000 (11:28 +0100)
commita17138b0e7f12c9ba2ac538c017a55a4cf56d77f
tree621cd798d0ea6624cddb2c4e802a63fb6da089e0
parent8f0cca53bf85158d3430e7dcfd125bc2e2b0125d
xen/arm64: sysreg: Implement the 32-bit helpers using the 64-bit helpers

Clang is pickier than GCC for the register size in asm statement. It
expects the register size to match the value size.

The instructions msr/mrs are expecting a 64-bit register. This means the
implementation of the 32-bit helpers is not correct. The easiest
solution is to implement the 32-bit helpers using the 64-bit helpers.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano <sstabellini@kernel.org>
xen/include/asm-arm/arm64/sysregs.h