projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52b28f7
)
ps2: use ps2_raise_irq() instead of calling update_irq() directly
author
Mark Cave-Ayland
<mark.cave-ayland@ilande.co.uk>
Fri, 24 Jun 2022 13:40:47 +0000
(14:40 +0100)
committer
Mark Cave-Ayland
<mark.cave-ayland@ilande.co.uk>
Sun, 26 Jun 2022 17:40:12 +0000
(18:40 +0100)
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>
hw/input/ps2.c
patch
|
blob
|
history
diff --git
a/hw/input/ps2.c
b/hw/input/ps2.c
index 24c9853d37c9f4b0e5fd91522109b4c7e9e0eef8..a14281bc548bc1f6884f5813d5aa5d6faae2323d 100644
(file)
--- a/
hw/input/ps2.c
+++ b/
hw/input/ps2.c
@@
-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;