Re: [PATCH v2 01/20] hw/pci-host/i440fx: Inline sysbus_add_io()

2023-01-31 Thread Thomas Huth
On 31/01/2023 12.53, Bernhard Beschow wrote: sysbus_add_io() just wraps memory_region_add_subregion() while also obscuring where the memory is attached. So use memory_region_add_subregion() directly and attach it to the existing memory region s->bus->address_space_io which is set as an alias to g

[PATCH v2 01/20] hw/pci-host/i440fx: Inline sysbus_add_io()

2023-01-31 Thread Bernhard Beschow
sysbus_add_io() just wraps memory_region_add_subregion() while also obscuring where the memory is attached. So use memory_region_add_subregion() directly and attach it to the existing memory region s->bus->address_space_io which is set as an alias to get_system_io() by the pc machine. Signed-off-b