[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 05/13] mac_oldworld: Do not open code sysbus_mmio_map()
From: |
BALATON Zoltan |
Subject: |
[PATCH v2 05/13] mac_oldworld: Do not open code sysbus_mmio_map() |
Date: |
Sun, 25 Sep 2022 14:38:12 +0200 (CEST) |
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
hw/ppc/mac_oldworld.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/hw/ppc/mac_oldworld.c b/hw/ppc/mac_oldworld.c
index cb67e44081..75fbd2a7df 100644
--- a/hw/ppc/mac_oldworld.c
+++ b/hw/ppc/mac_oldworld.c
@@ -218,16 +218,12 @@ static void ppc_heathrow_init(MachineState *machine)
qdev_prop_set_uint32(grackle_dev, "ofw-addr", 0x80000000);
s = SYS_BUS_DEVICE(grackle_dev);
sysbus_realize_and_unref(s, &error_fatal);
-
sysbus_mmio_map(s, 0, GRACKLE_BASE);
sysbus_mmio_map(s, 1, GRACKLE_BASE + 0x200000);
/* PCI hole */
- memory_region_add_subregion(get_system_memory(), 0x80000000ULL,
- sysbus_mmio_get_region(s, 2));
+ sysbus_mmio_map(s, 2, 0x80000000);
/* Register 2 MB of ISA IO space */
- memory_region_add_subregion(get_system_memory(), 0xfe000000,
- sysbus_mmio_get_region(s, 3));
-
+ sysbus_mmio_map(s, 3, 0xfe000000);
pci_bus = PCI_HOST_BRIDGE(grackle_dev)->bus;
/* MacIO */
--
2.30.4
- [PATCH v2 00/13] Misc ppc/mac machines clean up, BALATON Zoltan, 2022/09/25
- [PATCH v2 01/13] mac_newworld: Drop some variables, BALATON Zoltan, 2022/09/25
- [PATCH v2 02/13] mac_oldworld: Drop some more variables, BALATON Zoltan, 2022/09/25
- [PATCH v2 04/13] mac_{old|new}world: Avoid else branch by setting default value, BALATON Zoltan, 2022/09/25
- [PATCH v2 05/13] mac_oldworld: Do not open code sysbus_mmio_map(),
BALATON Zoltan <=
- [PATCH v2 03/13] mac_{old|new}world: Set tbfreq at declaration, BALATON Zoltan, 2022/09/25
- [PATCH v2 06/13] mac_newworld: Simplify creation of Uninorth devices, BALATON Zoltan, 2022/09/25
- [PATCH v2 10/13] hw/ppc/mac.h: Move grackle-pcihost declaration out from shared header, BALATON Zoltan, 2022/09/25
- [PATCH v2 07/13] mac_{old|new}world: Reduce number of QOM casts, BALATON Zoltan, 2022/09/25