Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com> --- hw/sparc/leon3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c index c5f1b1ee72..f58f2782c6 100644 --- a/hw/sparc/leon3.c +++ b/hw/sparc/leon3.c @@ -244,7 +244,7 @@ static void leon3_generic_hw_init(MachineState *machine) exit(1); } - memory_region_allocate_system_memory(ram, NULL, "leon3.ram", ram_size); + memory_region_allocate_system_memory(ram, machine, "leon3.ram", ram_size); memory_region_add_subregion(address_space_mem, LEON3_RAM_OFFSET, ram); /* Allocate BIOS */ -- 2.21.0