thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-configure-Add-handling-code-for-AArch64-targets.patch

9ae3a8
From de5ec0b147e227e4429033070e432f7b5b6b749f Mon Sep 17 00:00:00 2001
9ae3a8
From: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
Date: Tue, 2 Jun 2015 13:21:51 +0200
9ae3a8
Subject: [PATCH 4/8] configure: Add handling code for AArch64 targets
9ae3a8
9ae3a8
Message-id: <33907397e8692eaafe8700f27021516eab227257.1433250807.git.mrezanin@redhat.com>
9ae3a8
Patchwork-id: 65306
9ae3a8
O-Subject: [RHEL-7.2 qemu-kvm PATCH 2/4] configure: Add handling code for AArch64 targets
9ae3a8
Bugzilla: 1217850
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Wei Huang <wei@redhat.com>
9ae3a8
RH-Acked-by: Jeff Nelson <jenelson@redhat.com>
9ae3a8
9ae3a8
From: Alexander Graf <agraf@suse.de>
9ae3a8
9ae3a8
Add the necessary code to configure to handle AArch64 as a target
9ae3a8
CPU (we already have some code for supporting it as host). Note
9ae3a8
that this doesn't enable the AArch64 targets yet.
9ae3a8
9ae3a8
Signed-off-by: Alexander Graf <agraf@suse.de>
9ae3a8
Signed-off-by: John Rigby <john.rigby@linaro.org>
9ae3a8
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
9ae3a8
Message-id: 1378235544-22290-23-git-send-email-peter.maydell@linaro.org
9ae3a8
Message-id: 1368505980-17151-12-git-send-email-john.rigby@linaro.org
9ae3a8
[PMM:
9ae3a8
 * don't need to set TARGET_ABI_DIR to aarch64 as that is the default
9ae3a8
 * don't build nwfpe -- this is 32 bit legacy only
9ae3a8
 * rewrite commit message
9ae3a8
 * add aarch64 to the list of "fdt required" targets
9ae3a8
]
9ae3a8
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
9ae3a8
(cherry-picked from 6a49fa95c98cd155f7aaf48e5c6fa6bb6adea862)
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 configure | 7 ++++++-
9ae3a8
 1 file changed, 6 insertions(+), 1 deletion(-)
9ae3a8
9ae3a8
diff --git a/configure b/configure
9ae3a8
index 4f63345..7cc7725 100755
9ae3a8
--- a/configure
9ae3a8
+++ b/configure
9ae3a8
@@ -2650,7 +2650,7 @@ fi
9ae3a8
 fdt_required=no
9ae3a8
 for target in $target_list; do
9ae3a8
   case $target in
9ae3a8
-    arm*-softmmu|ppc*-softmmu|microblaze*-softmmu)
9ae3a8
+    aarch64*-softmmu|arm*-softmmu|ppc*-softmmu|microblaze*-softmmu)
9ae3a8
       fdt_required=yes
9ae3a8
     ;;
9ae3a8
   esac
9ae3a8
@@ -4383,6 +4383,11 @@ case "$target_arch2" in
9ae3a8
     target_nptl="yes"
9ae3a8
     gdb_xml_files="arm-core.xml arm-vfp.xml arm-vfp3.xml arm-neon.xml"
9ae3a8
   ;;
9ae3a8
+  aarch64)
9ae3a8
+    TARGET_BASE_ARCH=arm
9ae3a8
+    bflt="yes"
9ae3a8
+    gdb_xml_files="aarch64-core.xml"
9ae3a8
+  ;;
9ae3a8
   cris)
9ae3a8
     target_nptl="yes"
9ae3a8
   ;;
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8