Re: [PATCH v2 04/10] hw/ide/piix: Disuse isa_get_irq()

2023-02-05 Thread Mark Cave-Ayland
On 26/01/2023 21:17, Bernhard Beschow wrote: isa_get_irq() asks for an ISADevice which piix-ide doesn't provide. Passing a NULL pointer works but causes the isabus global to be used then. By fishing out TYPE_ISA_BUS from the QOM tree it is possible to achieve the same as isa_get_irq(). This is

[PATCH v2 04/10] hw/ide/piix: Disuse isa_get_irq()

2023-01-26 Thread Bernhard Beschow
isa_get_irq() asks for an ISADevice which piix-ide doesn't provide. Passing a NULL pointer works but causes the isabus global to be used then. By fishing out TYPE_ISA_BUS from the QOM tree it is possible to achieve the same as isa_get_irq(). This is an alternative solution to commit 9405d87be25d '