ps2: use ps2_raise_irq() instead of calling update_irq() directly
This consolidates the logic of raising the PS2 IRQ into one single function. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20220624134109.881989-33-mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
52b28f76dd
commit
892e9bbe59
@ -557,7 +557,7 @@ uint32_t ps2_read_data(PS2State *s)
|
|||||||
s->update_irq(s->update_arg, 0);
|
s->update_irq(s->update_arg, 0);
|
||||||
/* reassert IRQs if data left */
|
/* reassert IRQs if data left */
|
||||||
if (q->count) {
|
if (q->count) {
|
||||||
s->update_irq(s->update_arg, 1);
|
ps2_raise_irq(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return val;
|
return val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user