xlen="$(readelf -h $1 | grep 'Class' | cut -d: -f 2 | xargs echo | sed 's/^ELF//')"

qemu-riscv$xlen -L ${RISC_V_SYSROOT} "$@"
