diff options
author | Vincent Chen <vincentc@andestech.com> | 2018-11-22 11:14:34 +0800 |
---|---|---|
committer | Greentime Hu <greentime@andestech.com> | 2018-11-22 18:13:13 +0800 |
commit | e46bf83c1864a20f9dd17d597ec9be18ed05add8 (patch) | |
tree | b790f6d6935256140cb8e02d9a5dffd64ad74d14 /arch/nds32/Makefile | |
parent | 4f014a41b4efd72cbefb5525372dfcd65162eb4e (diff) | |
download | lwn-e46bf83c1864a20f9dd17d597ec9be18ed05add8.tar.gz lwn-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/Makefile | 4 |
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 |