qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 20/21] hw/sparc: Let the machine be the owner of the system memor


From: Philippe Mathieu-Daudé
Subject: [PATCH 20/21] hw/sparc: Let the machine be the owner of the system memory
Date: Mon, 21 Oct 2019 00:56:49 +0200

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]