From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRTjc-0002ez-G4 for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:23:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRTjW-0002Yx-4X for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:23:01 -0400 Received: from [199.232.76.173] (port=49204 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRTjU-0002YW-BN for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:22:56 -0400 Received: from cantor2.suse.de ([195.135.220.15]:51676 helo=mx2.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRTjT-0006rG-O9 for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:22:56 -0400 Received: from relay2.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 43B5C867E2 for ; Thu, 16 Jul 2009 18:22:54 +0200 (CEST) From: Alexander Graf Date: Thu, 16 Jul 2009 18:22:50 +0200 Message-Id: <1247761371-16980-4-git-send-email-agraf@suse.de> In-Reply-To: <1247761371-16980-3-git-send-email-agraf@suse.de> References: <1247761371-16980-1-git-send-email-agraf@suse.de> <1247761371-16980-2-git-send-email-agraf@suse.de> <1247761371-16980-3-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 3/4] Add mp_state to PPC CPU struct List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Some generic code tries to access env->mp_state. Let's just make it happy and provide it. --- configure | 2 ++ target-ppc/cpu.h | 4 ++++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/configure b/configure index d832d17..1909591 100755 --- a/configure +++ b/configure @@ -1993,6 +1993,7 @@ case "$target_arch2" in echo "CONFIG_KVM=y" >> $config_mak echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak echo "#define CONFIG_KVM 1" >> $config_h + echo "#define CONFIG_KVM_MP 1" >> $config_h fi if test "$xen" = "yes" -a "$target_softmmu" = "yes"; then @@ -2015,6 +2016,7 @@ case "$target_arch2" in echo "CONFIG_KVM=y" >> $config_mak echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak echo "#define CONFIG_KVM 1" >> $config_h + echo "#define CONFIG_KVM_MP 1" >> $config_h fi if test "$xen" = "yes" -a "$target_softmmu" = "yes" then diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 59d47d2..5582a39 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -660,6 +660,10 @@ struct CPUPPCState { target_ulong hreset_vector; #endif +#ifdef CONFIG_KVM + uint32_t mp_state; +#endif + /* Those resources are used only during code translation */ /* Next instruction pointer */ target_ulong nip; -- 1.6.0.2