aboutsummaryrefslogtreecommitdiff
path: root/scripts
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 /scripts
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 'scripts')
-rwxr-xr-xscripts/wrapper/spike/riscv64-unknown-linux-gnu-run4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run b/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run
index 14a5b00..6f5ba83 100755
--- a/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run
+++ b/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run
@@ -1,7 +1,7 @@
#!/bin/sh
xlen="$(readelf -h $1 | grep 'Class' | cut -d: -f 2 | xargs echo | sed 's/^ELF//')"
-
+arch="${ARCH_STR#*=}"
spike \
- --isa=RV${xlen}GC \
+ --isa=${arch} \
${PK_PATH}/pk${xlen} "$@"