Convert to use memory_region_init_ram() instead. This breaks migration but the machines using this device have no migration compatibility guarantee.
Signed-off-by: BALATON Zoltan <[email protected]> Reviewed-by: Peter Maydell <[email protected]> Reviewed-by: Akihiko Odaki <[email protected]> --- hw/xtensa/xtfpga.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index d427d68e50..ed24720f94 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -50,7 +50,6 @@ #include "xtensa_memory.h" #include "hw/xtensa/mx_pic.h" #include "exec/cpu-common.h" -#include "migration/vmstate.h" typedef struct XtfpgaFlashDesc { hwaddr base; @@ -163,9 +162,8 @@ static void xtfpga_net_init(MemoryRegion *address_space, sysbus_mmio_get_region(s, 1)); ram = g_malloc(sizeof(*ram)); - memory_region_init_ram_nomigrate(ram, OBJECT(s), "open_eth.ram", 16 * KiB, + memory_region_init_ram(ram, OBJECT(s), "open_eth.ram", 16 * KiB, &error_fatal); - vmstate_register_ram_global(ram); memory_region_add_subregion(address_space, buffers, ram); } -- 2.41.3
