]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/char/pci-multi: Convert legacy qemu_allocate_irqs to qemu_init_irq
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 21 Jan 2025 07:07:21 +0000 (08:07 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 31 Jan 2025 18:36:44 +0000 (19:36 +0100)
commit4ef6d66547cbd1331628530dfe03620bf41e3fae
tree0644ae6a7e6f34f67ff333dca554ce0f92194088
parent6b8f40c61bbfef1abe77eeb9c716ec642927c12c
hw/char/pci-multi: Convert legacy qemu_allocate_irqs to qemu_init_irq

There are a fixed number of PCI IRQs, known beforehand.
Allocate them within PCIMultiSerialState, and initialize
using qemu_init_irq(), allowing to remove the legacy
qemu_allocate_irqs() and qemu_free_irqs() calls.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250121182828.45088-1-philmd@linaro.org>
hw/char/serial-pci-multi.c