summaryrefslogtreecommitdiffstats
path: root/target/ppc/mmu-hash32.h
diff options
context:
space:
mode:
authorRichard Henderson2021-06-21 14:51:13 +0200
committerDavid Gibson2021-07-09 02:38:19 +0200
commit51806b545834e0902dd2d17d1f66c7a2d83422f3 (patch)
treea463ae487db0915126f8150429b83710b29e45fa /target/ppc/mmu-hash32.h
parenttarget/ppc: Split out ppc_jumbo_xlate (diff)
downloadqemu-51806b545834e0902dd2d17d1f66c7a2d83422f3.tar.gz
qemu-51806b545834e0902dd2d17d1f66c7a2d83422f3.tar.xz
qemu-51806b545834e0902dd2d17d1f66c7a2d83422f3.zip
target/ppc: Introduce ppc_xlate
Create one common dispatch for all of the ppc_*_xlate functions. Use ppc64_v3_radix to directly dispatch between ppc_radix64_xlate and ppc_hash64_xlate. Remove the separate *_handle_mmu_fault and *_get_phys_page_debug functions, using common code for ppc_cpu_tlb_fill and ppc_cpu_get_phys_page_debug. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210621125115.67717-9-bruno.larsen@eldorado.org.br> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/mmu-hash32.h')
-rw-r--r--target/ppc/mmu-hash32.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/ppc/mmu-hash32.h b/target/ppc/mmu-hash32.h
index 30e35718a7..8694eccabd 100644
--- a/target/ppc/mmu-hash32.h
+++ b/target/ppc/mmu-hash32.h
@@ -4,9 +4,9 @@
#ifndef CONFIG_USER_ONLY
hwaddr get_pteg_offset32(PowerPCCPU *cpu, hwaddr hash);
-hwaddr ppc_hash32_get_phys_page_debug(PowerPCCPU *cpu, target_ulong addr);
-int ppc_hash32_handle_mmu_fault(PowerPCCPU *cpu, vaddr address,
- MMUAccessType access_type, int mmu_idx);
+bool ppc_hash32_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type,
+ hwaddr *raddrp, int *psizep, int *protp,
+ bool guest_visible);
/*
* Segment register definitions