You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/14 18:53:21 UTC
[incubator-nuttx] 01/06: Risc-v: Fix the not supported options in
the latest 'RISCV_TOOLCHAIN' in rv32im's Toolchain.defs.
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch pr789
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit c0c1f8dcab6cfae349635ec78c5b125501665044
Author: zhongan <zh...@xiaomi.com>
AuthorDate: Fri Mar 6 11:38:05 2020 +0800
Risc-v: Fix the not supported options in the latest 'RISCV_TOOLCHAIN' in rv32im's Toolchain.defs.
Change-Id: Ibde19affe189eba825c328250603598380a171f8
Signed-off-by: zhongan <zh...@xiaomi.com>
---
arch/risc-v/src/rv32im/Toolchain.defs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/risc-v/src/rv32im/Toolchain.defs b/arch/risc-v/src/rv32im/Toolchain.defs
index 6fab514..c41ffe8 100644
--- a/arch/risc-v/src/rv32im/Toolchain.defs
+++ b/arch/risc-v/src/rv32im/Toolchain.defs
@@ -80,9 +80,9 @@ ifeq ($(CONFIG_RISCV_TOOLCHAIN),GNU_RVGL)
CROSSDEV ?= riscv64-unknown-elf-
ARCROSSDEV ?= riscv64-unknown-elf-
ifeq ($(CONFIG_RV32IM_HW_MULDIV),y)
- ARCHCPUFLAGS = -march=RV32IMXcustom -m32
+ ARCHCPUFLAGS = -march=rv32im -mabi=ilp32f -mdiv
else
- ARCHCPUFLAGS = -march=RV32IXcustom -m32
+ ARCHCPUFLAGS = -march=rv32im -mabi=ilp32f -mno-div
endif
endif
@@ -93,9 +93,9 @@ ifeq ($(CONFIG_RISCV_TOOLCHAIN),GNU_RVGW)
WINTOOL = y
endif
ifeq ($(CONFIG_RV32IM_HW_MULDIV),y)
- ARCHCPUFLAGS = -march=RV32IMXcustom -m32
+ ARCHCPUFLAGS = -march=rv32im -mabi=ilp32f -mdiv
else
- ARCHCPUFLAGS = -march=RV32IXcustom -m32
+ ARCHCPUFLAGS = -march=rv32im -mabi=ilp32f -mno-div
endif
endif