Commit 07c485ce78b60de7a40e4606f1f95d9c492d52ed
1 parent
415fc906
Turn MMU off on reset
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6637 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-ppc/helper.c
... | ... | @@ -2735,12 +2735,12 @@ void cpu_ppc_reset (void *opaque) |
2735 | 2735 | msr |= (target_ulong)1 << MSR_VR; /* Allow altivec usage */ |
2736 | 2736 | msr |= (target_ulong)1 << MSR_SPE; /* Allow SPE usage */ |
2737 | 2737 | msr |= (target_ulong)1 << MSR_PR; |
2738 | - env->msr = msr & env->msr_mask; | |
2739 | 2738 | #else |
2740 | 2739 | env->nip = env->hreset_vector | env->excp_prefix; |
2741 | 2740 | if (env->mmu_model != POWERPC_MMU_REAL) |
2742 | 2741 | ppc_tlb_invalidate_all(env); |
2743 | 2742 | #endif |
2743 | + env->msr = msr & env->msr_mask; | |
2744 | 2744 | hreg_compute_hflags(env); |
2745 | 2745 | env->reserve = (target_ulong)-1ULL; |
2746 | 2746 | /* Be sure no exception or interrupt is pending */ | ... | ... |