On 15/03/21 16:55, Philippe Mathieu-Daudé wrote:
Since you ask, I'd love to have things solved differently...
One PIC has 8 IRQs, so we should model 2 cascaded PICs as 2 cascaded
QOM PICs. But this code is so old and heavily used that my desire
is unlikely to be realized. And your patch is simpler :>

They are modeled like that, see i8259_init. Perhaps you mean that pic_read_irq should call itself recursively on the slave PIC if irq == 2 && s->master?

Paolo


Reply via email to