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:
Mark Cave-Ayland 2022-06-24 14:40:47 +01:00
parent 52b28f76dd
commit 892e9bbe59
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ uint32_t ps2_read_data(PS2State *s)
s->update_irq(s->update_arg, 0);
/* reassert IRQs if data left */
if (q->count) {
s->update_irq(s->update_arg, 1);
ps2_raise_irq(s);
}
}
return val;