ArmPkg/ArmLib ARM: set .fpu to let Clang 7 assemble ArmV7Support.S
Clang 7 complains about the vmsr instruction in ArmV7Support.S, which is only available on cores that implement some flavour of VFP. So set the .fpu to NEON like we do in some other places. Acked-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
@@ -262,6 +262,8 @@ ASM_FUNC(ArmEnableVFP)
|
||||
#ifndef __clang__
|
||||
mcr p10,#0x7,r0,c8,c0,#0
|
||||
#else
|
||||
# Set the FPU model so Clang does not choke on the next instruction
|
||||
.fpu neon
|
||||
vmsr fpexc, r0
|
||||
#endif
|
||||
bx lr
|
||||
|
Reference in New Issue
Block a user