From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxnYm-0002HO-FR for qemu-devel@nongnu.org; Wed, 05 Nov 2008 13:56:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxnYk-0002GS-9C for qemu-devel@nongnu.org; Wed, 05 Nov 2008 13:56:55 -0500 Received: from [199.232.76.173] (port=58002 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxnYk-0002GP-1N for qemu-devel@nongnu.org; Wed, 05 Nov 2008 13:56:54 -0500 Received: from mx2.redhat.com ([66.187.237.31]:54501) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KxnYi-0004Kb-V9 for qemu-devel@nongnu.org; Wed, 05 Nov 2008 13:56:53 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mA5Iuqhv011824 for ; Wed, 5 Nov 2008 13:56:52 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mA5IupKo026770 for ; Wed, 5 Nov 2008 13:56:51 -0500 Received: from localhost.localdomain (vpn-12-194.rdu.redhat.com [10.11.12.194]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mA5IunXb026227 for ; Wed, 5 Nov 2008 13:56:50 -0500 From: Glauber Costa Date: Wed, 5 Nov 2008 18:53:14 -0200 Message-Id: <1225918395-7404-2-git-send-email-glommer@redhat.com> In-Reply-To: <1225918395-7404-1-git-send-email-glommer@redhat.com> References: <1225918395-7404-1-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH] compile x86_64 on i386 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This patch allows qemu-system-x86_64 to be compiled on a i386 host. --- configure | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 067c3c5..65f0c74 100755 --- a/configure +++ b/configure @@ -1447,13 +1447,16 @@ interp_prefix1=`echo "$interp_prefix" | sed "s/%M/$target_cpu/g"` echo "#define CONFIG_QEMU_PREFIX \"$interp_prefix1\"" >> $config_h gdb_xml_files="" -# FIXME allow i386 to build on x86_64 and vice versa -if test "$kvm" = "yes" -a "$target_cpu" != "$cpu" ; then - kvm="no" -fi -# Disable KVM for linux-user -if test "$kvm" = "yes" -a "$target_softmmu" = "no" ; then - kvm="no" +if test "$kvm" = "yes"; +then + # Disable KVM for linux-user + if test "$target_softmmu" = "no"; + then + kvm="no" + elif test "$target_cpu" != "$cpu" && test ! "$cpu" = "i386" -a "$target_cpu" = "x86_64" ; + then + kvm="no" + fi fi case "$target_cpu" in -- 1.5.6.5