diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-02-07 16:26:12 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-02-15 16:58:46 +0100 |
commit | 2e0b925a341ddaa4be577542c74aa19b992215c0 (patch) | |
tree | 2262e31d0733719a122233524cd560b766429080 /include/hw/rx/rx62n.h | |
parent | 7188dfcda239ff2460fe8b0994e22e4b3a21dc17 (diff) | |
download | qemu-2e0b925a341ddaa4be577542c74aa19b992215c0.zip qemu-2e0b925a341ddaa4be577542c74aa19b992215c0.tar.gz qemu-2e0b925a341ddaa4be577542c74aa19b992215c0.tar.bz2 |
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>
Diffstat (limited to 'include/hw/rx/rx62n.h')
-rw-r--r-- | include/hw/rx/rx62n.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/rx/rx62n.h b/include/hw/rx/rx62n.h index bcda583..766fe0e 100644 --- a/include/hw/rx/rx62n.h +++ b/include/hw/rx/rx62n.h @@ -67,7 +67,6 @@ struct RX62NState { MemoryRegion iomem2; MemoryRegion iomem3; MemoryRegion c_flash; - qemu_irq irq[NR_IRQS]; /* Input Clock (XTAL) frequency */ uint32_t xtal_freq_hz; |