From patchwork Sat Mar 2 15:18:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjay Lal X-Patchwork-Id: 224505 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C0C882C02BD for ; Sun, 3 Mar 2013 02:30:17 +1100 (EST) Received: from localhost ([::1]:48619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBoO7-0001sR-V6 for incoming@patchwork.ozlabs.org; Sat, 02 Mar 2013 10:30:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBoNm-0001oF-N3 for qemu-devel@nongnu.org; Sat, 02 Mar 2013 10:29:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBoNj-0000bb-PA for qemu-devel@nongnu.org; Sat, 02 Mar 2013 10:29:54 -0500 Received: from kymasys.com ([64.62.140.43]:59950) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UBoNj-0000af-HH for qemu-devel@nongnu.org; Sat, 02 Mar 2013 10:29:51 -0500 Received: from agni.kymasys.com ([75.40.23.192]) by kymasys.com for ; Sat, 2 Mar 2013 07:19:46 -0800 Received: by agni.kymasys.com (Postfix, from userid 500) id 10FBB630055; Sat, 2 Mar 2013 07:18:50 -0800 (PST) From: Sanjay Lal To: qemu-devel@nongnu.org Date: Sat, 2 Mar 2013 07:18:43 -0800 Message-Id: <1362237527-23678-10-git-send-email-sanjayl@kymasys.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1362237527-23678-1-git-send-email-sanjayl@kymasys.com> References: <1362237527-23678-1-git-send-email-sanjayl@kymasys.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 64.62.140.43 Cc: Sanjay Lal , Gleb Natapov , Marcelo Tosatti , Aurelien Jarno , kvm@vger.kernel.org Subject: [Qemu-devel] [PATCH 08/12] KVM/MIPS: Enable KVM/MIPS for MIPS targets. Add MIPS GIC code to the build. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org --- configure | 17 +++++++++++++++-- hw/mips/Makefile.objs | 2 +- target-mips/Makefile.objs | 1 + 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/configure b/configure index bf5970f..5447661 100755 --- a/configure +++ b/configure @@ -1370,7 +1370,12 @@ case "$cpu" in bigendian=yes fi ;; - hppa|m68k|mips|mips64|ppc|ppc64|s390|s390x|sparc|sparc64) + mips|mips64) + if check_define __MIPSEB__; then + bigendian=yes + fi + ;; + hppa|m68k|ppc|ppc64|s390|s390x|sparc|sparc64) bigendian=yes ;; esac @@ -3844,6 +3849,9 @@ if test "$linux" = "yes" ; then # For most CPUs the kernel architecture name and QEMU CPU name match. linux_arch="$cpu" ;; + mips|mips64) + symlink "$source_path/linux-headers/asm-mips" linux-headers/asm + ;; esac # For non-KVM architectures we will not have asm headers if [ -e "$source_path/linux-headers/asm-$linux_arch" ]; then @@ -4074,7 +4082,7 @@ case "$target_arch2" in echo "CONFIG_NO_XEN=y" >> $config_target_mak esac case "$target_arch2" in - i386|x86_64|ppcemb|ppc|ppc64|s390x) + i386|x86_64|ppcemb|ppc|ppc64|s390x|mipsel|mips) # Make sure the target and host cpus are compatible if test "$kvm" = "yes" -a "$target_softmmu" = "yes" -a \ \( "$target_arch2" = "$cpu" -o \ @@ -4082,6 +4090,8 @@ case "$target_arch2" in \( "$target_arch2" = "ppc64" -a "$cpu" = "ppc" \) -o \ \( "$target_arch2" = "ppc" -a "$cpu" = "ppc64" \) -o \ \( "$target_arch2" = "ppcemb" -a "$cpu" = "ppc64" \) -o \ + \( "$target_arch2" = "mipsel" -a "$cpu" = "mips" \) -o \ + \( "$target_arch2" = "mips" -a "$cpu" = "mips" \) -o \ \( "$target_arch2" = "x86_64" -a "$cpu" = "i386" \) -o \ \( "$target_arch2" = "i386" -a "$cpu" = "x86_64" \) \) ; then echo "CONFIG_KVM=y" >> $config_target_mak @@ -4285,6 +4295,9 @@ if test "$target_linux_user" = "yes" -o "$target_bsd_user" = "yes" ; then *) ldflags="$linker_script $ldflags" ;; + mips|mipsel|mipseb|mips64) + symlink $source_path/linux-headers/asm-mips linux-headers/asm + ;; esac fi diff --git a/hw/mips/Makefile.objs b/hw/mips/Makefile.objs index 29a5d0d..c013bac 100644 --- a/hw/mips/Makefile.objs +++ b/hw/mips/Makefile.objs @@ -1,6 +1,6 @@ obj-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o obj-y += mips_addr.o mips_timer.o mips_int.o -obj-y += gt64xxx.o mc146818rtc.o +obj-y += gt64xxx.o mc146818rtc.o mips_gic.o obj-$(CONFIG_FULONG) += bonito.o vt82c686.o mips_fulong2e.o obj-y := $(addprefix ../,$(obj-y)) diff --git a/target-mips/Makefile.objs b/target-mips/Makefile.objs index 119c816..1956190 100644 --- a/target-mips/Makefile.objs +++ b/target-mips/Makefile.objs @@ -1,2 +1,3 @@ obj-y += translate.o dsp_helper.o op_helper.o lmi_helper.o helper.o cpu.o obj-$(CONFIG_SOFTMMU) += machine.o +obj-$(CONFIG_KVM) += kvm.o