diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2020-11-02 18:18:33 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2020-11-04 10:44:37 +0800 |
commit | 6afb838dbe701bf2b87c50b848718d0970374efa (patch) | |
tree | f1551eb6243e1722979a0f300974d34d9af3a590 /scripts | |
parent | 03d57716abd1fb9e403b488daed66477abc878a1 (diff) | |
download | riscv-gnu-toolchain-6afb838dbe701bf2b87c50b848718d0970374efa.zip riscv-gnu-toolchain-6afb838dbe701bf2b87c50b848718d0970374efa.tar.gz riscv-gnu-toolchain-6afb838dbe701bf2b87c50b848718d0970374efa.tar.bz2 |
Support run testsuite with spike
Diffstat (limited to 'scripts')
4 files changed, 10 insertions, 0 deletions
diff --git a/scripts/wrapper/spike/riscv32-unknown-elf-run b/scripts/wrapper/spike/riscv32-unknown-elf-run new file mode 120000 index 0000000..58669de --- /dev/null +++ b/scripts/wrapper/spike/riscv32-unknown-elf-run @@ -0,0 +1 @@ +riscv64-unknown-linux-gnu-run
\ No newline at end of file diff --git a/scripts/wrapper/spike/riscv32-unknown-linux-gnu-run b/scripts/wrapper/spike/riscv32-unknown-linux-gnu-run new file mode 120000 index 0000000..58669de --- /dev/null +++ b/scripts/wrapper/spike/riscv32-unknown-linux-gnu-run @@ -0,0 +1 @@ +riscv64-unknown-linux-gnu-run
\ No newline at end of file diff --git a/scripts/wrapper/spike/riscv64-unknown-elf-run b/scripts/wrapper/spike/riscv64-unknown-elf-run new file mode 120000 index 0000000..58669de --- /dev/null +++ b/scripts/wrapper/spike/riscv64-unknown-elf-run @@ -0,0 +1 @@ +riscv64-unknown-linux-gnu-run
\ No newline at end of file diff --git a/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run b/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run new file mode 100755 index 0000000..14a5b00 --- /dev/null +++ b/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run @@ -0,0 +1,7 @@ +#!/bin/sh + +xlen="$(readelf -h $1 | grep 'Class' | cut -d: -f 2 | xargs echo | sed 's/^ELF//')" + +spike \ + --isa=RV${xlen}GC \ + ${PK_PATH}/pk${xlen} "$@" |