nds32: Generate SW fpu instruction.
authorRick Chen <rick@andestech.com>
Tue, 15 Jan 2019 02:41:20 +0000 (10:41 +0800)
committerAndes <uboot@andestech.com>
Tue, 22 Jan 2019 09:35:57 +0000 (17:35 +0800)
Force it to generate SW fup instruction.
It help to avoid bugs when running on no-HW-fpu board, but
compile with v3f which support HW fpu instruction.

Signed-off-by: Rick Chen <rick@andestech.com>
Cc: Greentime Hu <greentime@andestech.com>
arch/nds32/config.mk

index a0f14ae589abe2b2aec875f9549c8e604f1b2d97..4e10de072e7415a1b2b74139adb3ed711a651970 100644 (file)
@@ -15,8 +15,8 @@ endif
 CONFIG_STANDALONE_LOAD_ADDR = 0x300000
 LDFLAGS_STANDALONE     += -T $(srctree)/examples/standalone/nds32.lds
 
-PLATFORM_RELFLAGS      += -fno-common -mrelax
+PLATFORM_RELFLAGS      += -fno-common -mrelax -mno-ext-fpu-dp -mfloat-abi=soft
 PLATFORM_RELFLAGS      += -gdwarf-2
 PLATFORM_CPPFLAGS      += -D__nds32__ -ffixed-10 -fpie
 
-LDFLAGS_u-boot         = --gc-sections --relax -pie
+LDFLAGS_u-boot         = --gc-sections --relax -pie --mabi=AABI