diff options
Diffstat (limited to 'scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run')
-rwxr-xr-x | scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run b/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run index 93dfccf..fe5b1dc 100755 --- a/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run +++ b/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run @@ -10,6 +10,8 @@ do shift done -xlen="$(march-to-cpu-opt --get-elf-class $1)" +xlen="$(march-to-cpu-opt --elf-file-path $1 --print-xlen)" +qemu_cpu="$(march-to-cpu-opt --elf-file-path $1 --print-qemu-cpu)" -QEMU_CPU="$(march-to-cpu-opt --get-riscv-tag $1)" qemu-riscv$xlen -r 5.10 "${qemu_args[@]}" -L ${RISC_V_SYSROOT} "$@" +QEMU_CPU="${qemu_cpu}" qemu-riscv${xlen} -r 5.10 "${qemu_args[@]}" \ + -L ${RISC_V_SYSROOT} "$@" |