diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2021-01-12 17:14:25 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2021-04-01 11:11:29 +0800 |
commit | 1bf8152ad01b81a1bfc767da320ad6553011afce (patch) | |
tree | d1747472ea933a2b69b1640423cab10096ccc019 | |
parent | a736f13279640936c2864c338e7c09c4777e1766 (diff) | |
download | riscv-gnu-toolchain-1bf8152ad01b81a1bfc767da320ad6553011afce.zip riscv-gnu-toolchain-1bf8152ad01b81a1bfc767da320ad6553011afce.tar.gz riscv-gnu-toolchain-1bf8152ad01b81a1bfc767da320ad6553011afce.tar.bz2 |
Specify the kernel version for qemu user mode.
- RV32 require 5.10 which is too new for most linux distro.
-rwxr-xr-x | scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run b/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run index 439164c..386c917 100755 --- a/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run +++ b/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run @@ -12,4 +12,4 @@ done xlen="$(readelf -h $1 | grep 'Class' | cut -d: -f 2 | xargs echo | sed 's/^ELF//')" -qemu-riscv$xlen "${qemu_args[@]}" -L ${RISC_V_SYSROOT} "$@" +qemu-riscv$xlen -r 5.10 "${qemu_args[@]}" -L ${RISC_V_SYSROOT} "$@" |