summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPete Delaney <piet.delaney@imgtec.com>2013-05-20 15:27:20 -0700
committerPete Delaney <piet.delaney@imgtec.com>2013-05-20 15:27:20 -0700
commit90ce45347064210585a3a1f59a0514c22c753c8a (patch)
tree10877f4fae35a607ece79d0f08b0888cf8f7b60e
parent1d0608f9c5d04ee0cd106e3bd80c41be7444046f (diff)
downloadbuild-90ce45347064210585a3a1f59a0514c22c753c8a.zip
build-90ce45347064210585a3a1f59a0514c22c753c8a.tar.gz
build-90ce45347064210585a3a1f59a0514c22c753c8a.tar.bz2
[MIPS] Disabled madd support for Ingenic Xburst CPUs.
1. Added xburst ARCH_VARIANT file 'mips32r2-fp-xburst.mk'. a) Added -mno-fused-madd GCC option. 2. Removing -mno-fused-madd GCC option for LLVM. Change-Id: I947a74eb89c05ae321417533c3c40241abc6f965 Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
-rw-r--r--core/combo/arch/mips/mips32r2-fp-xburst.mk17
-rw-r--r--core/llvm_config.mk3
2 files changed, 19 insertions, 1 deletions
diff --git a/core/combo/arch/mips/mips32r2-fp-xburst.mk b/core/combo/arch/mips/mips32r2-fp-xburst.mk
new file mode 100644
index 0000000..3768226
--- /dev/null
+++ b/core/combo/arch/mips/mips32r2-fp-xburst.mk
@@ -0,0 +1,17 @@
+# Configuration for Android on Ingenic xb4780/Xburst MIPS CPU.
+# Generating binaries for MIPS32R2/hard-float/little-endian without
+# support for the Madd family of instructions.
+
+ARCH_MIPS_HAS_FPU :=true
+ARCH_HAVE_ALIGNED_DOUBLES :=true
+arch_variant_cflags := \
+ -EL \
+ -march=mips32r2 \
+ -mtune=mips32r2 \
+ -mips32r2 \
+ -mhard-float \
+ -msynci \
+ -mno-fused-madd
+
+arch_variant_ldflags := \
+ -EL
diff --git a/core/llvm_config.mk b/core/llvm_config.mk
index 7a26842..9fe392f 100644
--- a/core/llvm_config.mk
+++ b/core/llvm_config.mk
@@ -60,7 +60,8 @@ ifeq ($(TARGET_ARCH),mips)
-mtune=mips32r2 \
-march=mips32 \
-mtune=mips32 \
- -msynci
+ -msynci \
+ -mno-fused-madd
endif
ifeq ($(TARGET_ARCH),x86)
CLANG_CONFIG_EXTRA_CFLAGS += \