qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 11/11] PPC64: Disable BAT for 970


From: Alexander Graf
Subject: [Qemu-devel] [PATCH 11/11] PPC64: Disable BAT for 970
Date: Sat, 7 Mar 2009 20:08:52 +0100

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 <address@hidden>
---
 target-ppc/helper.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index d936b80..2b848b1 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -1357,13 +1357,13 @@ int get_physical_address (CPUState *env, mmu_ctx_t 
*ctx, target_ulong eaddr,
         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);
-- 
1.6.0.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]