[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 15/21] hw/i386: Let the machine be the owner of the system memory
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 15/21] hw/i386: Let the machine be the owner of the system memory |
Date: |
Mon, 21 Oct 2019 00:56:44 +0200 |
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/i386/pc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 4b1904237e..3414dc423a 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1655,7 +1655,7 @@ void pc_memory_init(PCMachineState *pcms,
* with older qemus that used qemu_ram_alloc().
*/
ram = g_malloc(sizeof(*ram));
- memory_region_allocate_system_memory(ram, NULL, "pc.ram",
+ memory_region_allocate_system_memory(ram, machine, "pc.ram",
machine->ram_size);
*ram_memory = ram;
ram_below_4g = g_malloc(sizeof(*ram_below_4g));
--
2.21.0
- Re: [PATCH 12/21] hw/arm: Let the machine be the owner of the system memory, (continued)
[PATCH 13/21] hw/cris: Let the machine be the owner of the system memory, Philippe Mathieu-Daudé, 2019/10/20
[PATCH 14/21] hw/hppa: Let the machine be the owner of the system memory, Philippe Mathieu-Daudé, 2019/10/20
[PATCH 15/21] hw/i386: Let the machine be the owner of the system memory,
Philippe Mathieu-Daudé <=
[PATCH 16/21] hw/lm32: Let the machine be the owner of the system memory, Philippe Mathieu-Daudé, 2019/10/20
[PATCH 17/21] hw/m68k: Let the machine be the owner of the system memory, Philippe Mathieu-Daudé, 2019/10/20
[PATCH 18/21] hw/mips: Let the machine be the owner of the system memory, Philippe Mathieu-Daudé, 2019/10/20