qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC 07/11] arm/run: allow aarch64 to start arm binaries


From: Alex Bennée
Subject: [Qemu-devel] [RFC 07/11] arm/run: allow aarch64 to start arm binaries
Date: Fri, 26 Feb 2016 13:15:29 +0000

AArch64 hosts can happily run AArch32 binaries. We just need to ensure
that we use "cpu host,aarch64=off" when specifying the CPU type.

Signed-off-by: Alex Bennée <address@hidden>
---
 arm/run | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/arm/run b/arm/run
index 0eaf23a..f1a6b7d 100755
--- a/arm/run
+++ b/arm/run
@@ -38,7 +38,15 @@ if [ "$HOST" = "aarch64" ] && [ "$ACCEL" = "kvm" ]; then
        fi
 fi
 
-qemu="${QEMU:-qemu-system-$ARCH_NAME}"
+if [ "$ARCH" = "arm" ] && [ "$HOST" = "aarch64" ]; then
+    qemu="${QEMU:-qemu-system-$HOST}"
+    if [ "$ACCEL" = "kvm" ]; then
+       processor="host,aarch64=off"
+    fi
+else
+       qemu="${QEMU:-qemu-system-$ARCH_NAME}"
+fi
+
 qpath=$(which $qemu 2>/dev/null)
 
 if [ -z "$qpath" ]; then
-- 
2.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]