Skip to content

Commit fee00e6

Browse files
committed
Using '--with-profiles' replace '--with-isa-spec'.
1 parent b8ca156 commit fee00e6

File tree

4 files changed

+32
-24
lines changed

4 files changed

+32
-24
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ endif
3737
WITH_ARCH ?= @WITH_ARCH@
3838
WITH_ABI ?= @WITH_ABI@
3939
WITH_TUNE ?= @WITH_TUNE@
40-
WITH_ISA_SPEC ?= @WITH_ISA_SPEC@
40+
WITH_PROFILES ?= @WITH_PROFILES@
4141
SYSROOT := $(INSTALL_DIR)/sysroot
4242
ENABLE_LIBSANITIZER ?= @enable_libsanitizer@
4343
QEMU_TARGETS ?= @qemu_targets@

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,15 @@ GDB_TARGET_FLAGS_EXTRA, GLIBC_TARGET_FLAGS_EXTRA, NEWLIB_TARGET_FLAGS_EXTRA,
149149
LLVM_EXTRA_CONFIGURE_FLAGS, QEMU_EXTRA_CONFIGURE_FLAGS```.
150150
Example: ```GCC_EXTRA_CONFIGURE_FLAGS=--with-gmp=/opt/gmp make linux```
151151

152-
#### Set default ISA spec version
152+
#### Set default RISC-V Profiles
153153

154-
`--with-isa-spec=` can specify the default version of the RISC-V Unprivileged
155-
(formerly User-Level) ISA specification.
154+
`--with-profiles=` can specify the default RISC-V Profiles like RVA23 feature.
156155

157-
Possible options are: `2.2`, `20190608` and `20191213`.
156+
Possible options are: `rvi20u64`, `rvi20u32`, `rva20u64`, `rva22u64`, `rva23u64`, `rva23s64`, `rvb23u64`, `rvb23s64`.
158157

159-
The default version is `20191213`.
158+
The default version is `rva23u64`.
160159

161-
More details about this option you can refer this post [RISC-V GNU toolchain bumping default ISA spec to 20191213](https://groups.google.com/a/groups.riscv.org/g/sw-dev/c/aE1ZeHHCYf4).
160+
More details about this option you can refer this repo [RISC-V Profiles](https://github.com/riscv/riscv-profiles).
162161

163162
#### Build with customized multi-lib configure.
164163

configure

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ extra_multilib_test
650650
multilib_gen
651651
WITH_LANGUAGES
652652
WITH_SIM
653-
WITH_ISA_SPEC
653+
WITH_PROFILES
654654
WITH_ABI
655655
WITH_ARCH
656656
WITH_TUNE
@@ -722,7 +722,7 @@ enable_default_pie
722722
with_arch
723723
with_abi
724724
with_tune
725-
with_isa_spec
725+
with_profiles
726726
with_sim
727727
with_languages
728728
enable_multilib
@@ -1405,9 +1405,10 @@ Optional Packages:
14051405
--with-arch=rv64gc Sets the base RISC-V ISA, defaults to rv64gc
14061406
--with-abi=lp64d Sets the base RISC-V ABI, defaults to lp64d
14071407
--with-tune=generic Set the base RISC-V CPU, defaults to GCC's default
1408-
--with-isa-spec=20191213
1409-
Set the default ISA spec version, default to
1410-
20191213, available options: 2.2, 20190608, 20191213
1408+
--with-profiles=rva23u64
1409+
Set the default RISC-V Profiles, available options:
1410+
rvi20u64, rvi20u32, rva20u64, rva22u64, rva23s64,
1411+
rvb23u64, rvb23s64
14111412
--with-sim=qemu Sets the base RISC-V Simulator, defaults to qemu
14121413
--with-languages= Sets the enabled languages for GNU toolchain,
14131414
defaults to c,c++,fortran for Linux/native and
@@ -4016,16 +4017,21 @@ else $as_nop
40164017
fi
40174018
40184019
4019-
# Check whether --with-isa-spec was given.
4020-
if test ${with_isa_spec+y}
4020+
# Check whether --with-profiles was given.
4021+
if test ${with_profiles+y}
40214022
then :
4022-
withval=$with_isa_spec;
4023+
withval=$with_profiles;
40234024
else $as_nop
4024-
with_isa_spec=20191213
4025+
with_profiles=rva23u64
40254026
40264027
fi
40274028
40284029
4030+
if test "x$with_profiles" != x
4031+
then :
4032+
with_arch=$with_profiles
4033+
fi
4034+
40294035
40304036
# Check whether --with-sim was given.
40314037
if test ${with_sim+y}
@@ -4049,7 +4055,7 @@ fi
40494055
if test "x$with_abi" = xdefault
40504056
then :
40514057
case $with_arch in #(
4052-
*rv64g* | *rv64*d*) :
4058+
*rv64g* | *rv64*d* | *rva*64* | *rvb*64* | *rvi*64*) :
40534059
with_abi=lp64d ;; #(
40544060
*rv64*f*) :
40554061
with_abi=lp64f ;; #(
@@ -4073,7 +4079,7 @@ WITH_ARCH=--with-arch=$with_arch
40734079
40744080
WITH_ABI=--with-abi=$with_abi
40754081
4076-
WITH_ISA_SPEC=--with-isa-spec=$with_isa_spec
4082+
WITH_PROFILES=--with-profile=$with_profiles
40774083
40784084
WITH_SIM=$with_sim
40794085

configure.ac

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,16 @@ AS_IF([test "x$with_tune" != xno],
8989
[AC_SUBST(WITH_TUNE,--with-tune=$with_tune)],
9090
[AC_SUBST(WITH_TUNE,"")])
9191

92-
AC_ARG_WITH(isa-spec,
93-
[AS_HELP_STRING([--with-isa-spec=20191213],
94-
[Set the default ISA spec version, default to 20191213, available options: 2.2, 20190608, 20191213])],
92+
AC_ARG_WITH(profiles,
93+
[AS_HELP_STRING([--with-profiles=rva23u64],
94+
[Set the default RISC-V Profiles, available options: rvi20u64, rvi20u32, rva20u64, rva22u64, rva23s64, rvb23u64, rvb23s64])],
9595
[],
96-
[with_isa_spec=20191213]
96+
[with_profiles=rva23u64]
9797
)
9898

99+
AS_IF([test "x$with_profiles" != x],
100+
[with_arch=$with_profiles])
101+
99102
AC_ARG_WITH(sim,
100103
[AS_HELP_STRING([--with-sim=qemu],
101104
[Sets the base RISC-V Simulator, defaults to qemu])],
@@ -111,7 +114,7 @@ AC_ARG_WITH(languages,
111114

112115
AS_IF([test "x$with_abi" = xdefault],
113116
[AS_CASE([$with_arch],
114-
[*rv64g* | *rv64*d*], [with_abi=lp64d],
117+
[*rv64g* | *rv64*d* | *rva*64* | *rvb*64* | *rvi*64*], [with_abi=lp64d],
115118
[*rv64*f*], [with_abi=lp64f],
116119
[*rv64*], [with_abi=lp64],
117120
[*rv32e*], [with_abi=ilp32e],
@@ -123,7 +126,7 @@ AS_IF([test "x$with_abi" = xdefault],
123126

124127
AC_SUBST(WITH_ARCH, --with-arch=$with_arch)
125128
AC_SUBST(WITH_ABI, --with-abi=$with_abi)
126-
AC_SUBST(WITH_ISA_SPEC, --with-isa-spec=$with_isa_spec)
129+
AC_SUBST(WITH_PROFILES, --with-profile=$with_profiles)
127130
AC_SUBST(WITH_SIM, $with_sim)
128131
AC_SUBST(WITH_LANGUAGES, $with_languages)
129132

0 commit comments

Comments
 (0)