Commit 948559372583eb9d862d5a9b548a6e91b92426df
1 parent
0497d2f4
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 <alex@csgraf.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6759 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
3 deletions
target-ppc/helper.c
... | ... | @@ -1357,13 +1357,13 @@ int get_physical_address (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr, |
1357 | 1357 | case POWERPC_MMU_601: |
1358 | 1358 | case POWERPC_MMU_SOFT_6xx: |
1359 | 1359 | case POWERPC_MMU_SOFT_74xx: |
1360 | + /* Try to find a BAT */ | |
1361 | + if (env->nb_BATs != 0) | |
1362 | + ret = get_bat(env, ctx, eaddr, rw, access_type); | |
1360 | 1363 | #if defined(TARGET_PPC64) |
1361 | 1364 | case POWERPC_MMU_620: |
1362 | 1365 | case POWERPC_MMU_64B: |
1363 | 1366 | #endif |
1364 | - /* Try to find a BAT */ | |
1365 | - if (env->nb_BATs != 0) | |
1366 | - ret = get_bat(env, ctx, eaddr, rw, access_type); | |
1367 | 1367 | if (ret < 0) { |
1368 | 1368 | /* We didn't match any BAT entry or don't have BATs */ |
1369 | 1369 | ret = get_segment(env, ctx, eaddr, rw, access_type); | ... | ... |