Projet_SETI_RISC-V/riscv-gnu-toolchain/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run
2023-03-06 14:48:14 +01:00

7 lines
175 B
Bash
Executable file

#!/bin/sh
xlen="$(readelf -h $1 | grep 'Class' | cut -d: -f 2 | xargs echo | sed 's/^ELF//')"
arch="${ARCH_STR#*=}"
spike \
--isa=${arch} \
${PK_PATH}/pk${xlen} "$@"