File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ apt update
66apt 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
Original file line number Diff line number Diff line change @@ -4,5 +4,9 @@ xlen="$(march-to-cpu-opt --elf-file-path $1 --print-xlen)"
44isa=" $( march-to-cpu-opt --elf-file-path $1 --print-spike-isa) "
55varch=" $( 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} " $@ "
You can’t perform that action at this time.
0 commit comments