hw/m68k/mcf_intc: Expose MMIO region via SysBus API
commit4768968960f74db92d9fac360c17838cda39614b
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 24 Oct 2023 08:30:06 +0000 (24 10:30 +0200)
committerThomas Huth <huth@tuxfamily.org>
Wed, 1 Nov 2023 06:20:34 +0000 (1 07:20 +0100)
tree993dfca2900bc415c9366c0ea0f2d699264a6e4c
parent989c8a46cc9ec211b94c4dfa0f8fd8662ab697da
hw/m68k/mcf_intc: Expose MMIO region via SysBus API

QOM objects shouldn't access each other internals fields
except using the QOM API.

Here the caller of mcf_intc_init() access the MMIO region from
the MCF_INTC state. Avoid that by exposing that region via
sysbus_init_mmio(), then get it with sysbus_mmio_get_region().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Thomas Huth <huth@tuxfamily.org>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Message-ID: <20231024083010.12453-4-philmd@linaro.org>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
hw/m68k/mcf_intc.c