[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/21] hw/core: Let the machine be the owner of the system memory
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 10/21] hw/core: Let the machine be the owner of the system memory |
Date: |
Mon, 21 Oct 2019 00:56:39 +0200 |
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/core/null-machine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/core/null-machine.c b/hw/core/null-machine.c
index 1aa0a9a01a..16546c8140 100644
--- a/hw/core/null-machine.c
+++ b/hw/core/null-machine.c
@@ -35,7 +35,7 @@ static void machine_none_init(MachineState *mch)
if (mch->ram_size) {
MemoryRegion *ram = g_new(MemoryRegion, 1);
- memory_region_allocate_system_memory(ram, NULL, "ram", mch->ram_size);
+ memory_region_allocate_system_memory(ram, mch, "ram", mch->ram_size);
memory_region_add_subregion(get_system_memory(), 0, ram);
}
--
2.21.0