@@ -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() { \
@@ -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;
@@ -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[]) {
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é <f4bug@amsat.org> --- include/hw/core/cpu.h | 2 +- include/migration/vmstate.h | 3 --- stubs/vmstate.c | 9 --------- 3 files changed, 1 insertion(+), 13 deletions(-)