arm64: Fix sve_vl() for build errors
commit 5b9895f8 ("arm: Fix clang error in sve_vl()") breaks the build with the following compiler version, as the "rdvl" expects a 64bit register. /tmp/ccGJYtuC.s: Assembler messages: /tmp/ccGJYtuC.s:2165: Error: operand mismatch -- `rdvl w3,#8' /tmp/ccGJYtuC.s:2165: Info: did you mean this? /tmp/ccGJYtuC.s:2165: Info: rdvl x3, #8 make: *** [<builtin>: arm/selftest.o] Error 1 make: *** Waiting for unfinished jobs.... $ aarch64-none-elf-gcc --version aarch64-none-elf-gcc (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 10.2.1 20201103 Fix this by switching to use "unsigned long" variable and restoring the 64bit register for the instruction Fixes: 5b9895f8 ("arm: Fix clang error in sve_vl()") Cc: Raghavendra Rao Ananta <rananta@google.com> Cc: Andrew Jones <andrew.jones@linux.dev> Signed-off-by:Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by:
Andrew Jones <andrew.jones@linux.dev>
Loading
Please register or sign in to comment