Skip to content
Commit 5513394d authored by Marc Zyngier's avatar Marc Zyngier
Browse files

KVM: arm64: nv: Work around lack of pauth support in old toolchains



We still support GCC 8.x, and it appears that this toolchain
usually comes with an assembler that does not understand "pauth"
as a valid architectural extension.

This results in the NV ERETAx code breaking the build, as it relies
on this extention to make use of the PACGA instruction (required
by assemblers such as LLVM's).

Work around it by hand-assembling the instruction, which removes the
requirement for any assembler directive.

Fixes: 6ccc971e ("KVM: arm64: nv: Add emulation for ERETAx instructions")
Reported-by: default avatarLinaro Kernel Functional Testing <lkft@linaro.org>
Suggested-by: default avatarMark Rutland <mark.rutland@arm.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent 814ad8f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment