aboutsummaryrefslogtreecommitdiff
path: root/hw/m68k/dummy_m68k.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/m68k/dummy_m68k.c')
-rw-r--r--hw/m68k/dummy_m68k.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/m68k/dummy_m68k.c b/hw/m68k/dummy_m68k.c
index 278f4c03d3..5b77d930e4 100644
--- a/hw/m68k/dummy_m68k.c
+++ b/hw/m68k/dummy_m68k.c
@@ -42,8 +42,8 @@ static void dummy_m68k_init(MachineState *machine)
env->vbr = 0;
/* RAM at address zero */
- memory_region_init_ram(ram, NULL, "dummy_m68k.ram", ram_size, &error_abort);
- vmstate_register_ram_global(ram);
+ memory_region_allocate_system_memory(ram, NULL, "dummy_m68k.ram",
+ ram_size);
memory_region_add_subregion(address_space_mem, 0, ram);
/* Load kernel. */