From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lg3Xz-00063o-Dh for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:55:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lg3Xz-00063a-0t for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:55:03 -0500 Received: from [199.232.76.173] (port=46690 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lg3Xy-00063X-LZ for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:55:02 -0500 Received: from savannah.gnu.org ([199.232.41.3]:37178 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lg3Xy-0007sM-Ak for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:55:02 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lg3Xx-0003Hk-R2 for qemu-devel@nongnu.org; Sat, 07 Mar 2009 20:55:01 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lg3Xx-0003Hb-Gi for qemu-devel@nongnu.org; Sat, 07 Mar 2009 20:55:01 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sat, 07 Mar 2009 20:55:01 +0000 Subject: [Qemu-devel] [6752] Enable 64bit mode on interrupts 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 Revision: 6752 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6752 Author: blueswir1 Date: 2009-03-07 20:54:59 +0000 (Sat, 07 Mar 2009) Log Message: ----------- Enable 64bit mode on interrupts Real 970s enable MSR_SF on all interrupts. The current code didn't do this until now, so let's activate it! Signed-off-by: Alexander Graf Modified Paths: -------------- trunk/target-ppc/helper.c Modified: trunk/target-ppc/helper.c =================================================================== --- trunk/target-ppc/helper.c 2009-03-07 20:54:03 UTC (rev 6751) +++ trunk/target-ppc/helper.c 2009-03-07 20:54:59 UTC (rev 6752) @@ -2612,7 +2612,7 @@ new_msr |= (target_ulong)1 << MSR_CM; } } else { - if (!msr_isf) { + if (!msr_isf && !(env->mmu_model & POWERPC_MMU_64)) { new_msr &= ~((target_ulong)1 << MSR_SF); vector = (uint32_t)vector; } else { @@ -2793,6 +2793,10 @@ ppc_tlb_invalidate_all(env); #endif env->msr = msr & env->msr_mask; +#if defined(TARGET_PPC64) + if (env->mmu_model & POWERPC_MMU_64) + env->msr |= (1ULL << MSR_SF); +#endif hreg_compute_hflags(env); env->reserve = (target_ulong)-1ULL; /* Be sure no exception or interrupt is pending */