summary refs log tree commit diff stats
path: root/hw/core/cpu-user.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/core/cpu-user.c')
-rw-r--r--hw/core/cpu-user.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/core/cpu-user.c b/hw/core/cpu-user.c
index cdd8de2fef..1892acdee0 100644
--- a/hw/core/cpu-user.c
+++ b/hw/core/cpu-user.c
@@ -10,6 +10,7 @@
 #include "hw/qdev-core.h"
 #include "hw/qdev-properties.h"
 #include "hw/core/cpu.h"
+#include "migration/vmstate.h"
 
 static const Property cpu_user_props[] = {
     /*
@@ -30,3 +31,14 @@ void cpu_exec_initfn(CPUState *cpu)
 {
     /* nothing to do */
 }
+
+void cpu_vmstate_register(CPUState *cpu)
+{
+    assert(qdev_get_vmsd(DEVICE(cpu)) == NULL ||
+           qdev_get_vmsd(DEVICE(cpu))->unmigratable);
+}
+
+void cpu_vmstate_unregister(CPUState *cpu)
+{
+    /* nothing to do */
+}