summaryrefslogtreecommitdiff
path: root/target/config
diff options
context:
space:
mode:
Diffstat (limited to 'target/config')
-rw-r--r--target/config/Config.in.target6
1 files changed, 4 insertions, 2 deletions
diff --git a/target/config/Config.in.target b/target/config/Config.in.target
index 34039cc80..ed3e7107f 100644
--- a/target/config/Config.in.target
+++ b/target/config/Config.in.target
@@ -24,8 +24,10 @@ config ADK_TARGET_CFLAGS
default "-mcpu=v8" if ADK_CPU_SPARC_V8
default "-mcpu=ultrasparc -m64" if ADK_CPU_SPARC_V9
default "-march=loongson2f -Wa,-mfix-loongson2f-nop" if ADK_CPU_LOONGSON2F
- default "-march=mips32" if ADK_CPU_MIPS32
- default "-march=mips32r2" if ADK_CPU_MIPS32R2
+ default "-march=mips32" if ADK_CPU_MIPS32 && ADK_hard_float
+ default "-march=mips32r2" if ADK_CPU_MIPS32R2 && ADK_hard_float
+ default "-march=mips32 -msoft-float" if ADK_CPU_MIPS32 && ADK_soft_float
+ default "-march=mips32r2 -msoft-float" if ADK_CPU_MIPS32R2 && ADK_soft_float
default "-march=mips64" if ADK_CPU_MIPS64
default "-march=armv8-a" if ADK_CPU_ARMV8
default "-march=armv5te -mtune=iwmmxt" if ADK_CPU_XSCALE