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]> --- hw/xtensa/xtfpga.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index d427d68e50..d40fccf9e5 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -163,9 +163,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
