aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLiaoshihua <18990054834@163.com>2022-05-23 09:52:08 +0800
committerLiaoshihua <18990054834@163.com>2022-05-23 10:06:50 +0800
commit5a2b88b5286aa7fbe4ce14f65ec12c8e9ab69353 (patch)
tree95dce24746c16ffa4ba1caa30f76a93db273d3f9 /README.md
parent1342cd731cf072ca610d7a5a4c54d2153b6bad63 (diff)
downloadriscv-gnu-toolchain-5a2b88b5286aa7fbe4ce14f65ec12c8e9ab69353.zip
riscv-gnu-toolchain-5a2b88b5286aa7fbe4ce14f65ec12c8e9ab69353.tar.gz
riscv-gnu-toolchain-5a2b88b5286aa7fbe4ce14f65ec12c8e9ab69353.tar.bz2
Add option '--with-sim' to set simulator
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/README.md b/README.md
index c3ae943..c92eb3f 100644
--- a/README.md
+++ b/README.md
@@ -189,8 +189,9 @@ rv64imac with lp64 and rv64imafc with lp64 will reuse this multi-lib set.
The Dejagnu test suite has been ported to RISC-V. This can be run with a
simulator for the elf and linux toolchains. The simulator can be selected
by the SIM variable in the Makefile, e.g. SIM=qemu, SIM=gdb, or SIM=spike
-(experimental). However, the testsuite allowlist is only mintained for qemu.
-Other simulators might get extra failures.
+(experimental).In addition, the simulator can also be selected with the
+configure time option `--with-sim=`.However, the testsuite allowlist is
+only mintained for qemu.Other simulators might get extra failures.
To test GCC, run the following commands:
./configure --prefix=$RISCV --disable-linux --with-arch=rv64ima # or --with-arch=rv32ima
@@ -201,6 +202,10 @@ To test GCC, run the following commands:
make linux
make report-linux SIM=qemu # Run with qemu
+ ./configure --prefix=$RISCV --with-sim=spike
+ make linux
+ make report # Run with spike
+
Note:
- spike only support rv64* bare-metal/elf toolchain.
- gdb simulator only support bare-metal/elf toolchain.
@@ -263,3 +268,5 @@ Here is the list of configure option for specify source tree:
--with-gdb-src
--with-linux-headers-src
--with-qemu-src
+ --with-spike-src
+ --with-pk-src