aboutsummaryrefslogtreecommitdiff
path: root/scripts/wrapper/spike/riscv64-unknown-linux-gnu-run
blob: 6f5ba8373493e6da40276d022d76b71d66e25745 (plain)
1
2
3
4
5
6
7
#!/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} "$@"