hw/i386/pc_q35: Populate interrupt handlers before realizing LPC PCI function
commit143f3fd3d8b51d6526c8ea80e8a2a085f6f01cdf
authorBernhard Beschow <shentey@gmail.com>
Sat, 17 Feb 2024 10:46:44 +0000 (17 11:46 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 22 Feb 2024 11:47:40 +0000 (22 12:47 +0100)
tree9db926ef0b77acab5b483325a3f3641ec7b9a391
parent58183abfe702e4fe7654af8dd42c1270084486a3
hw/i386/pc_q35: Populate interrupt handlers before realizing LPC PCI function

The interrupt handlers need to be populated before the device is realized since
internal devices such as the RTC are wired during realize(). If the interrupt
handlers aren't populated, devices such as the RTC will be wired with a NULL
interrupt handler, i.e. MC146818RtcState::irq is NULL.

Fixes: fc11ca08bc29 "hw/i386/q35: Realize LPC PCI function before accessing it"

Cc: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-ID: <20240217104644.19755-1-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/i386/pc_q35.c