aboutsummaryrefslogtreecommitdiff
path: root/hw/i8259_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/i8259_common.c')
-rw-r--r--hw/i8259_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i8259_common.c b/hw/i8259_common.c
index 775fda453c..ab3d98b2a1 100644
--- a/hw/i8259_common.c
+++ b/hw/i8259_common.c
@@ -28,7 +28,7 @@
void pic_reset_common(PICCommonState *s)
{
s->last_irr = 0;
- s->irr = 0;
+ s->irr &= s->elcr;
s->imr = 0;
s->isr = 0;
s->priority_add = 0;