hw/sysbus: Use sizeof(BusState) in main_system_bus_create()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sat, 25 Jan 2025 17:24:39 +0000 (18:24 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 16 Feb 2025 13:25:07 +0000 (14:25 +0100)
commitd4194e19cc202774251ae03a1658077fd954797f
tree55f5349d7b15e6f6c9daa2dfa7a6588af69e6185
parent0d2d00e57a55d3d8205923e60c2553d83d288ebb
hw/sysbus: Use sizeof(BusState) in main_system_bus_create()

Rather than using the obscure system_bus_info.instance_size,
directly use sizeof(BusState).

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alexander Graf <graf@amazon.com>
Reviewed-by: Clément Mathieu--Drif<clement.mathieu--drif@eviden.com>
Message-Id: <20250125181343.59151-2-philmd@linaro.org>
hw/core/sysbus.c