mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
We never have to export ppc_set_irq.
Protect PowerPC 64 only features with #ifdef (TARGET_PPC64) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3316 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
217fae2d6b
commit
00af685fc9
5 changed files with 45 additions and 14 deletions
|
@ -1612,10 +1612,16 @@ void ppc_tlb_invalidate_all (CPUPPCState *env)
|
|||
cpu_abort(env, "MMU model not implemented\n");
|
||||
break;
|
||||
case POWERPC_MMU_32B:
|
||||
#if defined(TARGET_PPC64)
|
||||
case POWERPC_MMU_64B:
|
||||
case POWERPC_MMU_64BRIDGE:
|
||||
#endif /* defined(TARGET_PPC64) */
|
||||
tlb_flush(env, 1);
|
||||
break;
|
||||
default:
|
||||
/* XXX: TODO */
|
||||
cpu_abort(env, "Unknown MMU model %d\n", env->mmu_model);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1672,14 +1678,21 @@ void ppc_tlb_invalidate_one (CPUPPCState *env, target_ulong addr)
|
|||
tlb_flush_page(env, addr | (0xE << 28));
|
||||
tlb_flush_page(env, addr | (0xF << 28));
|
||||
break;
|
||||
#if defined(TARGET_PPC64)
|
||||
case POWERPC_MMU_64B:
|
||||
case POWERPC_MMU_64BRIDGE:
|
||||
/* tlbie invalidate TLBs for all segments */
|
||||
/* XXX: given the fact that there are too many segments to invalidate,
|
||||
* and we still don't have a tlb_flush_mask(env, n, mask) in Qemu,
|
||||
* we just invalidate all TLBs
|
||||
*/
|
||||
tlb_flush(env, 1);
|
||||
break;
|
||||
#endif /* defined(TARGET_PPC64) */
|
||||
default:
|
||||
/* XXX: TODO */
|
||||
cpu_abort(env, "Unknown MMU model 2\n");
|
||||
break;
|
||||
}
|
||||
#else
|
||||
ppc_tlb_invalidate_all(env);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue