hw/pci-host/q35: Inline sysbus_add_io()
authorBernhard Beschow <shentey@gmail.com>
Mon, 13 Feb 2023 16:19:57 +0000 (17:19 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 19 May 2023 14:30:46 +0000 (10:30 -0400)
commit67b4a74a0743c4cdb78bf884cea2407645530af3
tree3f6760b9660dbfd4f248d35897c52e9972416aff
parent273d65020b04f8a01e4b5cd543aeef1624b17001
hw/pci-host/q35: 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->mch.address_space_io which is set as an alias to
get_system_io() by the q35 machine.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230213162004.2797-3-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-host/q35.c