Skip to content

Commit 1560e44

Browse files
lenaryimphil
authored andcommitted
[Ibex] Disable Bitmanip in Libraries
We now build the toolchain (including libraries) with only rv32imc (as before we landed the bitmanip patches). With the B extension compiler and binutils patches landed, the compiler should still be able to compile for cores with the +B extension, but this change prevents issues if your core does not implement the B extension, which is the case for mainline Ibex today. Code with the B extension enabled should be linkable with libraries with the B extension disabled. Signed-off-by: Sam Elliott <[email protected]>
1 parent b8221c2 commit 1560e44

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

lowrisc-toolchain-gcc-rv32imc.config

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
CT_CONFIG_VERSION="3"
22
CT_EXPERIMENTAL=y
3+
34
CT_ARCH_RISCV=y
4-
CT_ARCH_ARCH="rv32imcb"
5+
6+
# CT_ARCH_ARCH controls the specific architecture that the toolchain's libraries
7+
# are built with. It should specify the minimum RISC-V extensions that need to
8+
# be implemented by any processor that this toolchain will compile programs for.
9+
#
10+
# 2020-03-26: We have added B extension (v0.92) support to the compiler using
11+
# experimental patches, but we still want to support Ibex without
12+
# the B extension, so this remains "rv32imc".
13+
#
14+
CT_ARCH_ARCH="rv32imc"
15+
16+
# CT_ARCH_ABI controls the specific ABI that the toolchain's libraries are built
17+
# with. All programs built against this toolchain should follow exactly this
18+
# ABI.
519
CT_ARCH_ABI="ilp32"
20+
621
CT_TARGET_VENDOR=""
722
# CT_CC_GCC_LDBL_128 is not set
823
CT_CC_LANG_CXX=y

0 commit comments

Comments
 (0)