Parameterise ABI based on selected XLEN unless it has already been passed in.
Note that since RISCV_PREFIX has always been parameterised using XLEN, this means that XLEN == 32 expects, by default, to use a riscv32-unknown-elf- prefixed toolchain. If necessary, this can be overridden as follows:
./configure ... --with-xlen=32
make benchmarks RISCV_PREFIX=riscv64-unknown-elf-
Obviously, whatever toolchain prefix is used the toolchain needs to support the selected arch/abi - e.g. rv64gcv/lp64d or rv32gcv/ilp32d or whatever other ABI is passed in - via the toolchain's default arch/abi or via multilibs for the selected arch/abi.
I didn't consider XLEN == 128 since, as far as I can see, it isn't considered elswhere in the test suite but it would be trivial to extend this mod to cover it if necessary.
Addresses this issue:
Parameterise
ABI
based on selectedXLEN
unless it has already been passed in.Note that since
RISCV_PREFIX
has always been parameterised usingXLEN
, this means thatXLEN == 32
expects, by default, to use ariscv32-unknown-elf-
prefixed toolchain. If necessary, this can be overridden as follows:Obviously, whatever toolchain prefix is used the toolchain needs to support the selected
arch/abi
- e.g.rv64gcv/lp64d
orrv32gcv/ilp32d
or whatever otherABI
is passed in - via the toolchain's defaultarch/abi
or via multilibs for the selectedarch/abi
.I didn't consider
XLEN == 128
since, as far as I can see, it isn't considered elswhere in the test suite but it would be trivial to extend this mod to cover it if necessary.