hw/sysbus: Inline and remove sysbus_add_io()
commit0068b069c3ffb9ac8e5ad56bf0c9d853bbfc3997
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 22 Sep 2023 13:06:59 +0000 (22 15:06 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 22 Feb 2024 11:47:40 +0000 (22 12:47 +0100)
tree4f242f84e877c71bddfcd0e1eff66b88782b70ed
parent40f27a785f6b9d238f4b87c17c3ec8329dcde803
hw/sysbus: Inline and remove sysbus_add_io()

sysbus_add_io(...) is a simple wrapper to
memory_region_add_subregion(get_system_io(), ...).
It is used in 3 places; inline it directly.

Rationale: we want to move to an explicit I/O bus,
rather that an implicit one. Besides in heterogeneous
setup we can have more than one I/O bus.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20240216150441.45681-1-philmd@linaro.org>
[PMD: Include missing "exec/address-spaces.h" header]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/core/sysbus.c
hw/i386/kvmvapic.c
hw/mips/mipssim.c
hw/nvram/fw_cfg.c
include/hw/sysbus.h