Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / target / ppc / mmu-radix64.h
blob6620b3d6481f360b68e1afa4f983bc2ac0862a3d
1 #ifndef MMU_RADIX64_H
2 #define MMU_RADIX64_H
4 #ifndef CONFIG_USER_ONLY
6 #ifdef TARGET_PPC64
8 /* Radix Quadrants */
9 #define R_EADDR_MASK 0x3FFFFFFFFFFFFFFF
10 #define R_EADDR_VALID_MASK 0xC00FFFFFFFFFFFFF
11 #define R_EADDR_QUADRANT 0xC000000000000000
12 #define R_EADDR_QUADRANT0 0x0000000000000000
13 #define R_EADDR_QUADRANT1 0x4000000000000000
14 #define R_EADDR_QUADRANT2 0x8000000000000000
15 #define R_EADDR_QUADRANT3 0xC000000000000000
17 bool ppc_radix64_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type,
18 hwaddr *raddr, int *psizep, int *protp, int mmu_idx,
19 bool guest_visible);
21 #endif /* TARGET_PPC64 */
23 #endif /* CONFIG_USER_ONLY */
25 #endif /* MMU_RADIX64_H */