Re: [PATCH] riscv: Add support to no-FPU systems

2018-06-21 Thread Alan Kao
On Wed, Jun 20, 2018 at 11:39:38PM -0700, Christoph Hellwig wrote: > > +ifeq ($(CONFIG_FPU),y) > > KBUILD_AFLAGS += -march=$(KBUILD_MARCH)$(KBUILD_ARCH_A)fd$(KBUILD_ARCH_C) > > +else > > +KBUILD_AFLAGS += -march=$(KBUILD_MARCH)$(KBUILD_ARCH_A)$(KBUILD_ARCH_C) > > +endif > > Can we refactor that K

Re: [PATCH] riscv: Add support to no-FPU systems

2018-06-20 Thread Christoph Hellwig
> +ifeq ($(CONFIG_FPU),y) > KBUILD_AFLAGS += -march=$(KBUILD_MARCH)$(KBUILD_ARCH_A)fd$(KBUILD_ARCH_C) > +else > +KBUILD_AFLAGS += -march=$(KBUILD_MARCH)$(KBUILD_ARCH_A)$(KBUILD_ARCH_C) > +endif Can we refactor that KBUILD_ARCH code into something like riscv-march-y := r

[PATCH] riscv: Add support to no-FPU systems

2018-06-20 Thread Alan Kao
This patch adds an option, CONFIG_FPU, so that we can enable/disable floating procedures in kernel. Signed-off-by: Alan Kao Cc: Greentime Hu Cc: Zong Li --- arch/riscv/Kconfig | 4 arch/riscv/Makefile| 4 arch/riscv/include/asm/switch_to.h | 4 ar