xen/arm: cpufeature: Match register size with value size in cpus_have_const_cap
authorJulien Grall <julien.grall@arm.com>
Tue, 26 Mar 2019 21:26:57 +0000 (21:26 +0000)
committerJulien Grall <julien.grall@arm.com>
Thu, 3 Oct 2019 10:38:34 +0000 (11:38 +0100)
commit32a813fe7d531cdb81221930e150edfba7cbbf52
tree3936b2f51efdb70db44fe610d1b88a09d1cc6a20
parent6acd7dea7adfbe5553383a5133dd3ab6b8145afa
xen/arm: cpufeature: Match register size with value size in cpus_have_const_cap

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 no 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/cpufeature.h