[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 3/9] hw/i386/pc_q35: Reuse machine parameter
From: |
Bernhard Beschow |
Subject: |
[PATCH v3 3/9] hw/i386/pc_q35: Reuse machine parameter |
Date: |
Sat, 4 Feb 2023 16:10:21 +0100 |
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
hw/i386/pc_q35.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index 66cd718b70..dee2b38474 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -218,7 +218,7 @@ static void pc_q35_init(MachineState *machine)
pc_memory_init(pcms, get_system_memory(), rom_memory, &ram_memory,
pci_hole64_size);
- object_property_add_child(qdev_get_machine(), "q35", OBJECT(q35_host));
+ object_property_add_child(OBJECT(machine), "q35", OBJECT(q35_host));
object_property_set_link(OBJECT(q35_host), MCH_HOST_PROP_RAM_MEM,
OBJECT(ram_memory), NULL);
object_property_set_link(OBJECT(q35_host), MCH_HOST_PROP_PCI_MEM,
--
2.39.1
- [PATCH v3 0/9] PC cleanups, Bernhard Beschow, 2023/02/04
- [PATCH v3 1/9] hw/pci-host/i440fx: Inline sysbus_add_io(), Bernhard Beschow, 2023/02/04
- [PATCH v3 2/9] hw/pci-host/q35: Inline sysbus_add_io(), Bernhard Beschow, 2023/02/04
- [PATCH v3 3/9] hw/i386/pc_q35: Reuse machine parameter,
Bernhard Beschow <=
- [PATCH v3 4/9] hw/i386/pc_{q35, piix}: Reuse MachineClass::desc as SMB product name, Bernhard Beschow, 2023/02/04
- [PATCH v3 5/9] hw/i386/pc_{q35, piix}: Minimize usage of get_system_memory(), Bernhard Beschow, 2023/02/04
- [PATCH v3 6/9] hw/i386/pc: Initialize ram_memory variable directly, Bernhard Beschow, 2023/02/04
- [PATCH v3 7/9] hw/pci-host/pam: Make init_pam() usage more readable, Bernhard Beschow, 2023/02/04
- [PATCH v3 9/9] target/i386/tcg/sysemu/tcg-cpu: Avoid own opinion about smram size, Bernhard Beschow, 2023/02/04