[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 18/29] hw/pci-host/ppce500: Reuse TYPE_PPC_E500_PCI_BRIDGE define
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 18/29] hw/pci-host/ppce500: Reuse TYPE_PPC_E500_PCI_BRIDGE define |
Date: |
Tue, 5 Nov 2024 22:47:16 +0000 |
From: Bernhard Beschow <shentey@gmail.com>
Prefer a macro rather than a string literal when instantiaging device models.
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-ID: <20241103133412.73536-14-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/pci-host/ppce500.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/pci-host/ppce500.c b/hw/pci-host/ppce500.c
index 95b983b2b3c..5a4a924a2f0 100644
--- a/hw/pci-host/ppce500.c
+++ b/hw/pci-host/ppce500.c
@@ -475,7 +475,7 @@ static void e500_pcihost_realize(DeviceState *dev, Error
**errp)
address_space_init(&s->bm_as, &s->bm, "pci-bm");
pci_setup_iommu(b, &ppce500_iommu_ops, s);
- pci_create_simple(b, 0, "e500-host-bridge");
+ pci_create_simple(b, 0, TYPE_PPC_E500_PCI_BRIDGE);
memory_region_init(&s->container, OBJECT(h), "pci-container",
PCIE500_ALL_SIZE);
memory_region_init_io(&h->conf_mem, OBJECT(h), &pci_host_conf_be_ops, h,
--
2.45.2
- Re: [PULL 09/29] qapi/qom: Define cache enumeration and properties for machine, (continued)
- [PULL 10/29] hw/core: Check smp cache topology support for machine, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 11/29] hw/core: Add a helper to check the cache topology level, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 12/29] hw/ppc/e500: Prefer QOM cast, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 13/29] hw/ppc/e500: Remove unused "irqs" parameter, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 14/29] hw/ppc/e500: Add missing device tree properties to i2c controller node, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 15/29] hw/ppc/mpc8544_guts: Populate POR PLL ratio status register, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 17/29] hw/i2c/mpc_i2c: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 18/29] hw/pci-host/ppce500: Reuse TYPE_PPC_E500_PCI_BRIDGE define,
Philippe Mathieu-Daudé <=
- [PULL 21/29] hw/net/fsl_etsec/etsec: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 16/29] hw/i2c/mpc_i2c: Convert DPRINTF to trace events for register access, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 19/29] hw/pci-host/ppce500: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 20/29] hw/net/fsl_etsec/miim: Reuse MII constants, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 22/29] hw/gpio/mpc8xxx: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 23/29] hw/ppc/mpc8544_guts: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 24/29] hw/sd/sdhci: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 26/29] hw/i2c/smbus_eeprom: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 25/29] hw/block/pflash_cfi01: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 28/29] hw/usb/hcd-ehci-sysbus: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05