hw/i386/pc: Remove unused 'owner' argument from pc_pci_as_mapping_init

This argument was added 9 years ago in commit 83d08f2673
("pc: map PCI address space as catchall region for not mapped
addresses") and has never been used since, so remove it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20230105173826.56748-1-philmd@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Philippe Mathieu-Daudé 2023-01-05 18:38:26 +01:00 committed by Laurent Vivier
parent 6eb71c6a1e
commit 09aa7be196
4 changed files with 4 additions and 6 deletions

View File

@ -782,7 +782,7 @@ void pc_guest_info_init(PCMachineState *pcms)
} }
/* setup pci memory address space mapping into system address space */ /* setup pci memory address space mapping into system address space */
void pc_pci_as_mapping_init(Object *owner, MemoryRegion *system_memory, void pc_pci_as_mapping_init(MemoryRegion *system_memory,
MemoryRegion *pci_address_space) MemoryRegion *pci_address_space)
{ {
/* Set to lower priority than RAM */ /* Set to lower priority than RAM */

View File

@ -272,8 +272,7 @@ PCIBus *i440fx_init(const char *pci_type,
IO_APIC_DEFAULT_ADDRESS - 1); IO_APIC_DEFAULT_ADDRESS - 1);
/* setup pci memory mapping */ /* setup pci memory mapping */
pc_pci_as_mapping_init(OBJECT(f), f->system_memory, pc_pci_as_mapping_init(f->system_memory, f->pci_address_space);
f->pci_address_space);
/* if *disabled* show SMRAM to all CPUs */ /* if *disabled* show SMRAM to all CPUs */
memory_region_init_alias(&f->smram_region, OBJECT(d), "smram-region", memory_region_init_alias(&f->smram_region, OBJECT(d), "smram-region",

View File

@ -574,8 +574,7 @@ static void mch_realize(PCIDevice *d, Error **errp)
} }
/* setup pci memory mapping */ /* setup pci memory mapping */
pc_pci_as_mapping_init(OBJECT(mch), mch->system_memory, pc_pci_as_mapping_init(mch->system_memory, mch->pci_address_space);
mch->pci_address_space);
/* if *disabled* show SMRAM to all CPUs */ /* if *disabled* show SMRAM to all CPUs */
memory_region_init_alias(&mch->smram_region, OBJECT(mch), "smram-region", memory_region_init_alias(&mch->smram_region, OBJECT(mch), "smram-region",

View File

@ -156,7 +156,7 @@ void pc_guest_info_init(PCMachineState *pcms);
#define PCI_HOST_ABOVE_4G_MEM_SIZE "above-4g-mem-size" #define PCI_HOST_ABOVE_4G_MEM_SIZE "above-4g-mem-size"
void pc_pci_as_mapping_init(Object *owner, MemoryRegion *system_memory, void pc_pci_as_mapping_init(MemoryRegion *system_memory,
MemoryRegion *pci_address_space); MemoryRegion *pci_address_space);
void xen_load_linux(PCMachineState *pcms); void xen_load_linux(PCMachineState *pcms);