]> git.proxmox.com Git - qemu.git/blobdiff - target-sh4/helper.c
cpu: Turn cpu_get_phys_page_debug() into a CPUClass hook
[qemu.git] / target-sh4 / helper.c
index cb6a2d28bd55ad35dc73eaef6da9fb5dc2bb8ac0..9ac28250e0b69492fe69fa5fd3b43b069ef95a3d 100644 (file)
@@ -508,12 +508,13 @@ int cpu_sh4_handle_mmu_fault(CPUSH4State * env, target_ulong address, int rw,
     return 0;
 }
 
-hwaddr cpu_get_phys_page_debug(CPUSH4State * env, target_ulong addr)
+hwaddr superh_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
 {
+    SuperHCPU *cpu = SUPERH_CPU(cs);
     target_ulong physical;
     int prot;
 
-    get_physical_address(env, &physical, &prot, addr, 0, 0);
+    get_physical_address(&cpu->env, &physical, &prot, addr, 0, 0);
     return physical;
 }