mirror of https://github.com/acidanthera/audk.git
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:
parent
99243102b4
commit
8594c2073c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue