aboutsummaryrefslogtreecommitdiff
path: root/hw/m68k/an5206.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/m68k/an5206.c')
-rw-r--r--hw/m68k/an5206.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/m68k/an5206.c b/hw/m68k/an5206.c
index f1f13504c0..f63ab2b94d 100644
--- a/hw/m68k/an5206.c
+++ b/hw/m68k/an5206.c
@@ -50,8 +50,7 @@ static void an5206_init(MachineState *machine)
env->rambar0 = AN5206_RAMBAR_ADDR | 1;
/* DRAM at address zero */
- memory_region_init_ram(ram, NULL, "an5206.ram", ram_size, &error_abort);
- vmstate_register_ram_global(ram);
+ memory_region_allocate_system_memory(ram, NULL, "an5206.ram", ram_size);
memory_region_add_subregion(address_space_mem, 0, ram);
/* Internal SRAM. */