xen/arm: cpuerrata: Match register size with value size in check_workaround_*
authorJulien Grall <julien.grall@arm.com>
Tue, 26 Mar 2019 20:53:09 +0000 (20:53 +0000)
committerJulien Grall <julien.grall@arm.com>
Thu, 3 Oct 2019 10:38:30 +0000 (11:38 +0100)
commit6acd7dea7adfbe5553383a5133dd3ab6b8145afa
tree10cff4e76274d49cd89fc6df115724a84f87689a
parentbd822333e0116b1ecfbb4750908849f21af6801b
xen/arm: cpuerrata: Match register size with value size in check_workaround_*

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

The asm statement expects a 32-bit (resp. 64-bit) value on Arm32
(resp. Arm64) whereas the value is a boolean (Clang consider to be
32-bit).

It would be possible to impose 32-bit register for both architecture
but this require the code to use __OP32. However, it does not really
improve the assembly generated. Instead, replace switch the variable
to use register_t.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/cpuerrata.h