User-mode wants an empty vmstate for the CPUs. We can use the generic vmstate_no_state_to_migrate object which is the same.
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> --- include/hw/core/cpu.h | 2 +- include/migration/vmstate.h | 3 --- stubs/vmstate.c | 9 --------- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index c79a58db9b9..01e75cc7403 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -1132,7 +1132,7 @@ bool target_words_bigendian(void); #ifdef CONFIG_SOFTMMU extern const VMStateDescription vmstate_cpu_common; #else -#define vmstate_cpu_common vmstate_user_mode_cpu_dummy +#define vmstate_cpu_common vmstate_no_state_to_migrate #endif #define VMSTATE_CPU() { \ diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 50559598eac..dfe20b5caa1 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -194,9 +194,6 @@ struct VMStateDescription { const VMStateDescription **subsections; }; -#if defined(CONFIG_USER_ONLY) -extern const VMStateDescription vmstate_user_mode_cpu_dummy; -#endif extern const VMStateDescription vmstate_no_state_to_migrate; extern const VMStateInfo vmstate_info_bool; diff --git a/stubs/vmstate.c b/stubs/vmstate.c index 1d0e03e233b..c360a929f60 100644 --- a/stubs/vmstate.c +++ b/stubs/vmstate.c @@ -1,15 +1,6 @@ #include "qemu/osdep.h" #include "migration/vmstate.h" -#if defined(CONFIG_USER_ONLY) -const VMStateDescription vmstate_user_mode_cpu_dummy = { - .name = "cpu_common_user", - .fields = (VMStateField[]) { - VMSTATE_END_OF_LIST() - }, -}; -#endif - const VMStateDescription vmstate_no_state_to_migrate = { .name = "empty-state", .fields = (VMStateField[]) { -- 2.26.2