xref: /openbmc/qemu/target/ppc/mmu-booke.h (revision e7baac64)
1*e7baac64SBALATON Zoltan #ifndef PPC_MMU_BOOKE_H
2*e7baac64SBALATON Zoltan #define PPC_MMU_BOOKE_H
3*e7baac64SBALATON Zoltan 
4*e7baac64SBALATON Zoltan #include "cpu.h"
5*e7baac64SBALATON Zoltan 
6*e7baac64SBALATON Zoltan int ppcemb_tlb_search(CPUPPCState *env, target_ulong address, uint32_t pid);
7*e7baac64SBALATON Zoltan int mmu40x_get_physical_address(CPUPPCState *env, hwaddr *raddr, int *prot,
8*e7baac64SBALATON Zoltan                                 target_ulong address,
9*e7baac64SBALATON Zoltan                                 MMUAccessType access_type);
10*e7baac64SBALATON Zoltan hwaddr booke206_tlb_to_page_size(CPUPPCState *env, ppcmas_tlb_t *tlb);
11*e7baac64SBALATON Zoltan int ppcmas_tlb_check(CPUPPCState *env, ppcmas_tlb_t *tlb, hwaddr *raddrp,
12*e7baac64SBALATON Zoltan                      target_ulong address, uint32_t pid);
13*e7baac64SBALATON Zoltan bool ppc_booke_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type,
14*e7baac64SBALATON Zoltan                      hwaddr *raddrp, int *psizep, int *protp, int mmu_idx,
15*e7baac64SBALATON Zoltan                      bool guest_visible);
16*e7baac64SBALATON Zoltan 
17*e7baac64SBALATON Zoltan #endif
18