Skip to content

Commit 646653b

Browse files
Fix CI run failure on rv64gc
Signed-off-by: Pan Li <[email protected]>
1 parent c5b9a52 commit 646653b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/setup-apt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ apt update
66
apt install -y autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev \
77
libgmp-dev gawk build-essential bison flex texinfo gperf libtool \
88
patchutils bc zlib1g-dev libexpat-dev git ninja-build cmake libglib2.0-dev expect \
9-
device-tree-compiler
9+
device-tree-compiler python3-pyelftools

scripts/wrapper/spike/riscv64-unknown-linux-gnu-run

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ xlen="$(march-to-cpu-opt --elf-file-path $1 --print-xlen)"
44
isa="$(march-to-cpu-opt --elf-file-path $1 --print-spike-isa)"
55
varch="$(march-to-cpu-opt --elf-file-path $1 --print-spike-varch)"
66

7-
[[ -z ${varch} ]] && spike --isa=${isa} ${PK_PATH}/pk${xlen} "$@"
8-
[[ ! -z ${varch} ]] && spike --isa=${isa} --varch=${varch} ${PK_PATH}/pk${xlen} "$@"
7+
isa_option="--isa=${isa}"
8+
varch_option=""
9+
10+
[[ ! -z ${varch} ]] && varch_option="--varch=${varch}"
11+
12+
spike ${isa_option} ${varch_option} ${PK_PATH}/pk${xlen} "$@"

0 commit comments

Comments
 (0)