From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lg3bM-0006z4-Uj for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:58:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lg3bM-0006ya-7r for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:58:32 -0500 Received: from [199.232.76.173] (port=35924 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lg3bL-0006yV-UV for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:58:31 -0500 Received: from savannah.gnu.org ([199.232.41.3]:55756 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 1Lg3bL-0008AG-Jz for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:58:31 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lg3bL-0003X3-1x for qemu-devel@nongnu.org; Sat, 07 Mar 2009 20:58:31 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lg3bK-0003Wz-RI for qemu-devel@nongnu.org; Sat, 07 Mar 2009 20:58:30 +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:58:30 +0000 Subject: [Qemu-devel] [6759] Disable BAT for 970 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: 6759 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6759 Author: blueswir1 Date: 2009-03-07 20:58:30 +0000 (Sat, 07 Mar 2009) Log Message: ----------- Disable BAT for 970 The 970 doesn't know BAT, so let's not search BATs there. This was only in as a hack for OpenHackWare so it would work on PPC64. 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:57:47 UTC (rev 6758) +++ trunk/target-ppc/helper.c 2009-03-07 20:58:30 UTC (rev 6759) @@ -1357,13 +1357,13 @@ case POWERPC_MMU_601: case POWERPC_MMU_SOFT_6xx: case POWERPC_MMU_SOFT_74xx: + /* Try to find a BAT */ + if (env->nb_BATs != 0) + ret = get_bat(env, ctx, eaddr, rw, access_type); #if defined(TARGET_PPC64) case POWERPC_MMU_620: case POWERPC_MMU_64B: #endif - /* Try to find a BAT */ - if (env->nb_BATs != 0) - ret = get_bat(env, ctx, eaddr, rw, access_type); if (ret < 0) { /* We didn't match any BAT entry or don't have BATs */ ret = get_segment(env, ctx, eaddr, rw, access_type);