aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2021-01-12 17:14:25 +0800
committerKito Cheng <kito.cheng@sifive.com>2021-04-01 11:11:29 +0800
commit1bf8152ad01b81a1bfc767da320ad6553011afce (patch)
treed1747472ea933a2b69b1640423cab10096ccc019
parenta736f13279640936c2864c338e7c09c4777e1766 (diff)
downloadriscv-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-xscripts/wrapper/qemu/riscv64-unknown-linux-gnu-run2
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} "$@"