aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-08-20 13:48:54 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-08-20 13:48:54 -0700
commitb40950d657936aa9382ca35a0332f884b97b0bb3 (patch)
tree14289ce165aeae93f137d75b82f6b0e6b77f3368 /scripts
parent65cb174d37e2efe99e094eb317113442c79ed3ce (diff)
downloadriscv-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-run2
l---------[-rwxr-xr-x]scripts/wrapper/qemu/riscv32-unknown-linux-gnu-run2
l---------[-rwxr-xr-x]scripts/wrapper/qemu/riscv64-unknown-elf-run2
-rwxr-xr-xscripts/wrapper/qemu/riscv64-unknown-linux-gnu-run4
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} "$@"