Commit 846787113a3c5beb010145c2870ca163c5d21497

Authored by balrog
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,6 +123,8 @@ static int pic_get_irq(PicState *s)
123 master, the IRQ coming from the slave is not taken into account 123 master, the IRQ coming from the slave is not taken into account
124 for the priority computation. */ 124 for the priority computation. */
125 mask = s->isr; 125 mask = s->isr;
  126 + if (s->special_mask)
  127 + mask &= ~s->imr;
126 if (s->special_fully_nested_mode && s == &s->pics_state->pics[0]) 128 if (s->special_fully_nested_mode && s == &s->pics_state->pics[0])
127 mask &= ~(1 << 2); 129 mask &= ~(1 << 2);
128 cur_priority = get_priority(s, mask); 130 cur_priority = get_priority(s, mask);