[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/15] hw/ppc/e500: Prefer local variable over qdev_get_machine()
From: |
Daniel Henrique Barboza |
Subject: |
[PULL 11/15] hw/ppc/e500: Prefer local variable over qdev_get_machine() |
Date: |
Tue, 20 Dec 2022 10:52:47 -0300 |
From: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221216145709.271940-5-shentey@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
hw/ppc/e500.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index 2bef2f01cb..53876af866 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -984,7 +984,7 @@ void ppce500_init(MachineState *machine)
memory_region_add_subregion(address_space_mem, 0, machine->ram);
dev = qdev_new("e500-ccsr");
- object_property_add_child(qdev_get_machine(), "e500-ccsr",
+ object_property_add_child(OBJECT(machine), "e500-ccsr",
OBJECT(dev));
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
ccsr = CCSR(dev);
@@ -1048,7 +1048,7 @@ void ppce500_init(MachineState *machine)
/* PCI */
dev = qdev_new("e500-pcihost");
- object_property_add_child(qdev_get_machine(), "pci-host", OBJECT(dev));
+ object_property_add_child(OBJECT(machine), "pci-host", OBJECT(dev));
qdev_prop_set_uint32(dev, "first_slot", pmc->pci_first_slot);
qdev_prop_set_uint32(dev, "first_pin_irq", pci_irq_nrs[0]);
s = SYS_BUS_DEVICE(dev);
--
2.38.1
- [PULL 01/15] MAINTAINERS: downgrade PPC KVM/TCG CPUs and pSeries to 'Odd Fixes', (continued)
- [PULL 01/15] MAINTAINERS: downgrade PPC KVM/TCG CPUs and pSeries to 'Odd Fixes', Daniel Henrique Barboza, 2022/12/20
- [PULL 02/15] hw/sd/sdhci: MMIO region is implemented in 32-bit accesses, Daniel Henrique Barboza, 2022/12/20
- [PULL 03/15] hw/sd/sdhci: Support big endian SD host controller interfaces, Daniel Henrique Barboza, 2022/12/20
- [PULL 04/15] hw/ppc/e500: Add Freescale eSDHC to e500plat, Daniel Henrique Barboza, 2022/12/20
- [PULL 05/15] target/ppc/kvm: Add missing "cpu.h" and "exec/hwaddr.h", Daniel Henrique Barboza, 2022/12/20
- [PULL 06/15] hw/ppc/vof: Do not include the full "cpu.h", Daniel Henrique Barboza, 2022/12/20
- [PULL 07/15] hw/ppc/spapr: Reduce "vof.h" inclusion, Daniel Henrique Barboza, 2022/12/20
- [PULL 08/15] target/ppc/mmu_common: Log which effective address had no TLB entry found, Daniel Henrique Barboza, 2022/12/20
- [PULL 09/15] target/ppc/mmu_common: Fix table layout of "info tlb" HMP command, Daniel Henrique Barboza, 2022/12/20
- [PULL 10/15] hw/ppc/virtex_ml507: Prefer local over global variable, Daniel Henrique Barboza, 2022/12/20
- [PULL 11/15] hw/ppc/e500: Prefer local variable over qdev_get_machine(),
Daniel Henrique Barboza <=
- [PULL 12/15] hw/ppc/e500: Resolve variable shadowing, Daniel Henrique Barboza, 2022/12/20
- [PULL 13/15] hw/ppc/e500: Move comment to more appropriate place, Daniel Henrique Barboza, 2022/12/20
- [PULL 14/15] target/ppc: Implement the DEXCR and HDEXCR, Daniel Henrique Barboza, 2022/12/20
- [PULL 15/15] target/ppc: Check DEXCR on hash{st, chk} instructions, Daniel Henrique Barboza, 2022/12/20
- Re: [PULL 00/15] ppc queue, Peter Maydell, 2022/12/20