]> git.proxmox.com Git - qemu.git/blobdiff - target-ppc/mmu_helper.c
cpu: Turn cpu_get_phys_page_debug() into a CPUClass hook
[qemu.git] / target-ppc / mmu_helper.c
index 77102c4b65e26ff4c8e1a671a7f69af8ee767bda..5dd4e05f78f14bca71f132ed53bf4bc44670d33d 100644 (file)
@@ -1409,8 +1409,10 @@ static int get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx,
     return ret;
 }
 
-hwaddr cpu_get_phys_page_debug(CPUPPCState *env, target_ulong addr)
+hwaddr ppc_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
 {
+    PowerPCCPU *cpu = POWERPC_CPU(cs);
+    CPUPPCState *env = &cpu->env;
     mmu_ctx_t ctx;
 
     switch (env->mmu_model) {