hw/pci-host/i440fx: Inline sysbus_add_io()
authorBernhard Beschow <shentey@gmail.com>
Mon, 13 Feb 2023 16:19:56 +0000 (17:19 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 19 May 2023 14:30:46 +0000 (10:30 -0400)
commit273d65020b04f8a01e4b5cd543aeef1624b17001
tree49b739fe067b4784f0b7f793a364008bbda43723
parentbc7b0cac7bf41f24ceb84a03b491f93c378529a4
hw/pci-host/i440fx: Inline sysbus_add_io()

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-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230213162004.2797-2-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/pci-host/i440fx.c