hw/rx/rx62n: Only call qdev_get_gpio_in() when necessary
commit2e0b925a341ddaa4be577542c74aa19b992215c0
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 7 Feb 2024 15:26:12 +0000 (7 16:26 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 15 Feb 2024 15:58:46 +0000 (15 16:58 +0100)
tree2262e31d0733719a122233524cd560b766429080
parent7188dfcda239ff2460fe8b0994e22e4b3a21dc17
hw/rx/rx62n: Only call qdev_get_gpio_in() when necessary

Instead of filling an array of all the possible IRQs, only call
qdev_get_gpio_in() when an IRQ is used. Remove the array from
RX62NState. Doing so we avoid calling qdev_get_gpio_in() on an
unrealized device.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240213130341.1793-4-philmd@linaro.org>
hw/rx/rx62n.c
include/hw/rx/rx62n.h