Skip to contentSkip to conversation

[6759] Disable BAT for 970

Qemu-devel Blue Swirl 1 participant 1 message Mar 7, 2009

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

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.

Modified Paths:
--------------
trunk/target-ppc/helper.c

Modified: trunk/target-ppc/helper.c
===================================================================

target-ppc/helper.c +3 -3
@@ -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);