diff options
-rw-r--r-- | hw/display/sm501.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/display/sm501.c b/hw/display/sm501.c index af792c533b..9aa515b3da 100644 --- a/hw/display/sm501.c +++ b/hw/display/sm501.c @@ -1578,9 +1578,8 @@ static void sm501_init(SM501State *s, DeviceState *dev, s->local_mem_size_index); /* local memory */ - memory_region_init_ram_nomigrate(&s->local_mem_region, OBJECT(dev), "sm501.local", + memory_region_init_ram(&s->local_mem_region, OBJECT(dev), "sm501.local", get_local_mem_size(s), &error_fatal); - vmstate_register_ram_global(&s->local_mem_region); memory_region_set_log(&s->local_mem_region, true, DIRTY_MEMORY_VGA); s->local_mem = memory_region_get_ram_ptr(&s->local_mem_region); |