From 1783a2f3e87ce191d5a22b0125aab6111a562a6c Mon Sep 17 00:00:00 2001 From: Jake Weinstein Date: Thu, 6 Apr 2017 20:28:05 -0400 Subject: [PATCH] soong: use optimal FPU on Kryo targets * -mfpu=neon-fp-armv8 enables the ARMv8 floating-point and Advanced SIMD extensions. Test: Marlin builds successfully Change-Id: Ibdf71dae61b966372e3bcb946aa18d1a6cd0f8e6 --- cc/config/arm_device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/config/arm_device.go b/cc/config/arm_device.go index d144c037e..ae4e64646 100644 --- a/cc/config/arm_device.go +++ b/cc/config/arm_device.go @@ -136,6 +136,7 @@ var ( }, "kryo": []string{ "-mcpu=cortex-a15", + "-mfpu=neon-fp-armv8", // Fake an ARM compiler flag as these processors support LPAE which GCC/clang // don't advertise. // TODO This is a hack and we need to add it for each processor that supports LPAE until some @@ -171,7 +172,6 @@ func init() { armClangCpuVariantCflags["krait"] = append(armClangCpuVariantCflags["krait"], "-mfpu=neon-vfpv4") replaceFirst(armClangCpuVariantCflags["kryo"], "-mcpu=cortex-a15", "-mcpu=krait") - armClangCpuVariantCflags["kryo"] = append(armClangCpuVariantCflags["kryo"], "-mfpu=neon-vfpv4") pctx.StaticVariable("armGccVersion", armGccVersion)