summaryrefslogtreecommitdiffstats
path: root/arch/nds32/Makefile
diff options
context:
space:
mode:
authorVincent Chen2018-11-22 04:14:34 +0100
committerGreentime Hu2018-11-22 11:13:13 +0100
commite46bf83c1864a20f9dd17d597ec9be18ed05add8 (patch)
treeb790f6d6935256140cb8e02d9a5dffd64ad74d14 /arch/nds32/Makefile
parentnds32: Remove duplicated include from pm.c (diff)
downloadkernel-qcow2-linux-e46bf83c1864a20f9dd17d597ec9be18ed05add8.tar.gz
kernel-qcow2-linux-e46bf83c1864a20f9dd17d597ec9be18ed05add8.tar.xz
kernel-qcow2-linux-e46bf83c1864a20f9dd17d597ec9be18ed05add8.zip
nds32: nds32 FPU port
This patch set contains basic components for supporting the nds32 FPU, such as exception handlers and context switch for FPU registers. By default, the lazy FPU scheme is supported and the user can configure it via CONFIG_LZAY_FPU. Signed-off-by: Vincent Chen <vincentc@andestech.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
Diffstat (limited to 'arch/nds32/Makefile')
-rw-r--r--arch/nds32/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile
index 9f525ed70049..6dc03206e3c9 100644
--- a/arch/nds32/Makefile
+++ b/arch/nds32/Makefile
@@ -5,10 +5,14 @@ KBUILD_DEFCONFIG := defconfig
comma = ,
+
ifdef CONFIG_FUNCTION_TRACER
arch-y += -malways-save-lp -mno-relax
endif
+# Avoid generating FPU instructions
+arch-y += -mno-ext-fpu-sp -mno-ext-fpu-dp -mfloat-abi=soft
+
KBUILD_CFLAGS += $(call cc-option, -mno-sched-prolog-epilog)
KBUILD_CFLAGS += -mcmodel=large