diff options
author | Pan Li <pan2.li@intel.com> | 2023-11-21 14:33:17 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2023-11-22 10:23:47 +0800 |
commit | 646653b439ec7d4957b9161ee80a6055b37aff3e (patch) | |
tree | b898ad1deb996c9a52b06063c6edb7f7625d7aa1 /scripts/wrapper/spike | |
parent | c5b9a52fbc69bb0738f40978fab6ff78915ce99b (diff) | |
download | riscv-gnu-toolchain-646653b439ec7d4957b9161ee80a6055b37aff3e.zip riscv-gnu-toolchain-646653b439ec7d4957b9161ee80a6055b37aff3e.tar.gz riscv-gnu-toolchain-646653b439ec7d4957b9161ee80a6055b37aff3e.tar.bz2 |
Fix CI run failure on rv64gc
Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'scripts/wrapper/spike')
-rwxr-xr-x | scripts/wrapper/spike/riscv64-unknown-linux-gnu-run | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run b/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run index 819ac7a..fb569f1 100755 --- a/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run +++ b/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run @@ -4,5 +4,9 @@ xlen="$(march-to-cpu-opt --elf-file-path $1 --print-xlen)" isa="$(march-to-cpu-opt --elf-file-path $1 --print-spike-isa)" varch="$(march-to-cpu-opt --elf-file-path $1 --print-spike-varch)" -[[ -z ${varch} ]] && spike --isa=${isa} ${PK_PATH}/pk${xlen} "$@" -[[ ! -z ${varch} ]] && spike --isa=${isa} --varch=${varch} ${PK_PATH}/pk${xlen} "$@" +isa_option="--isa=${isa}" +varch_option="" + +[[ ! -z ${varch} ]] && varch_option="--varch=${varch}" + +spike ${isa_option} ${varch_option} ${PK_PATH}/pk${xlen} "$@" |