]> git.proxmox.com Git - qemu.git/blobdiff - target-arm/cpu.c
cpu: Turn cpu_get_phys_page_debug() into a CPUClass hook
[qemu.git] / target-arm / cpu.c
index 082bc128312e843d4ce9152c22c59f182177931d..d3906a4829a00d67f8b13618a7dd1e4b80b26064 100644 (file)
@@ -824,7 +824,10 @@ static void arm_cpu_class_init(ObjectClass *oc, void *data)
     cc->do_interrupt = arm_cpu_do_interrupt;
     cc->dump_state = arm_cpu_dump_state;
     cc->set_pc = arm_cpu_set_pc;
-    cpu_class_set_vmsd(cc, &vmstate_arm_cpu);
+#ifndef CONFIG_USER_ONLY
+    cc->get_phys_page_debug = arm_cpu_get_phys_page_debug;
+    cc->vmsd = &vmstate_arm_cpu;
+#endif
 }
 
 static void cpu_register(const ARMCPUInfo *info)