Commit 846787113a3c5beb010145c2870ca163c5d21497
1 parent
315bc7aa
Special Mask Mode for i8259 PIC (Sebastian Reichelt).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4894 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
0 deletions
hw/i8259.c
... | ... | @@ -123,6 +123,8 @@ static int pic_get_irq(PicState *s) |
123 | 123 | master, the IRQ coming from the slave is not taken into account |
124 | 124 | for the priority computation. */ |
125 | 125 | mask = s->isr; |
126 | + if (s->special_mask) | |
127 | + mask &= ~s->imr; | |
126 | 128 | if (s->special_fully_nested_mode && s == &s->pics_state->pics[0]) |
127 | 129 | mask &= ~(1 << 2); |
128 | 130 | cur_priority = get_priority(s, mask); | ... | ... |