All of lore.kernel.org
 help / color / mirror / Atom feed
From: Glauber Costa <glommer@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] compile x86_64 on i386
Date: Wed,  5 Nov 2008 18:53:14 -0200	[thread overview]
Message-ID: <1225918395-7404-2-git-send-email-glommer@redhat.com> (raw)
In-Reply-To: <1225918395-7404-1-git-send-email-glommer@redhat.com>

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

  reply	other threads:[~2008-11-05 18:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-05 20:53 [Qemu-devel] [PATCH 0/2] Compile KVM support for x86_64 in i386 Glauber Costa
2008-11-05 20:53 ` Glauber Costa [this message]
2008-11-05 19:13   ` [Qemu-devel] [PATCH] compile x86_64 on i386 Anthony Liguori
2008-11-05 19:18     ` Glauber Costa
2008-11-05 19:59       ` Anthony Liguori
2008-11-05 20:53   ` [Qemu-devel] [PATCH] correctly advertise presence of KVM support Glauber Costa
2008-11-05 20:02     ` Anthony Liguori
2008-11-06 10:47       ` Glauber Costa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1225918395-7404-2-git-send-email-glommer@redhat.com \
    --to=glommer@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.