diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-08-20 13:48:54 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2017-08-20 13:48:54 -0700 |
commit | b40950d657936aa9382ca35a0332f884b97b0bb3 (patch) | |
tree | 14289ce165aeae93f137d75b82f6b0e6b77f3368 /scripts | |
parent | 65cb174d37e2efe99e094eb317113442c79ed3ce (diff) | |
download | riscv-gnu-toolchain-b40950d657936aa9382ca35a0332f884b97b0bb3.zip riscv-gnu-toolchain-b40950d657936aa9382ca35a0332f884b97b0bb3.tar.gz riscv-gnu-toolchain-b40950d657936aa9382ca35a0332f884b97b0bb3.tar.bz2 |
Link all the QEMU wrapper scripts together
Diffstat (limited to 'scripts')
l---------[-rwxr-xr-x] | scripts/wrapper/qemu/riscv32-unknown-elf-run | 2 | ||||
l---------[-rwxr-xr-x] | scripts/wrapper/qemu/riscv32-unknown-linux-gnu-run | 2 | ||||
l---------[-rwxr-xr-x] | scripts/wrapper/qemu/riscv64-unknown-elf-run | 2 | ||||
-rwxr-xr-x | scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run | 4 |
4 files changed, 6 insertions, 4 deletions
diff --git a/scripts/wrapper/qemu/riscv32-unknown-elf-run b/scripts/wrapper/qemu/riscv32-unknown-elf-run index 194d05c..58669de 100755..120000 --- a/scripts/wrapper/qemu/riscv32-unknown-elf-run +++ b/scripts/wrapper/qemu/riscv32-unknown-elf-run @@ -1 +1 @@ -qemu-riscv32 -L ${RISC_V_SYSROOT} $* +riscv64-unknown-linux-gnu-run
\ No newline at end of file diff --git a/scripts/wrapper/qemu/riscv32-unknown-linux-gnu-run b/scripts/wrapper/qemu/riscv32-unknown-linux-gnu-run index 194d05c..58669de 100755..120000 --- a/scripts/wrapper/qemu/riscv32-unknown-linux-gnu-run +++ b/scripts/wrapper/qemu/riscv32-unknown-linux-gnu-run @@ -1 +1 @@ -qemu-riscv32 -L ${RISC_V_SYSROOT} $* +riscv64-unknown-linux-gnu-run
\ No newline at end of file diff --git a/scripts/wrapper/qemu/riscv64-unknown-elf-run b/scripts/wrapper/qemu/riscv64-unknown-elf-run index dd061ae..58669de 100755..120000 --- a/scripts/wrapper/qemu/riscv64-unknown-elf-run +++ b/scripts/wrapper/qemu/riscv64-unknown-elf-run @@ -1 +1 @@ -qemu-riscv64 -L ${RISC_V_SYSROOT} $* +riscv64-unknown-linux-gnu-run
\ No newline at end of file diff --git a/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run b/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run index dd061ae..7aad5ea 100755 --- a/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run +++ b/scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run @@ -1 +1,3 @@ -qemu-riscv64 -L ${RISC_V_SYSROOT} $* +xlen="$(readelf -h $1 | grep 'Class' | cut -d: -f 2 | xargs echo | sed 's/^ELF//')" + +qemu-riscv$xlen -L ${RISC_V_SYSROOT} "$@" |