Commit 2bb081f7a0ffafb226f29c0a11f55d388d833c7e

Authored by ths
1 parent a2cce02c

Fix i8259 initialization, by Bernhard Kauer.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3100 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
hw/i8259.c
@@ -351,7 +351,7 @@ static void pic_ioport_write(void *opaque, uint32_t addr, uint32_t val) @@ -351,7 +351,7 @@ static void pic_ioport_write(void *opaque, uint32_t addr, uint32_t val)
351 break; 351 break;
352 case 1: 352 case 1:
353 s->irq_base = val & 0xf8; 353 s->irq_base = val & 0xf8;
354 - s->init_state = s->single_mode && s->init4 ? 3 : 2; 354 + s->init_state = s->single_mode ? (s->init4 ? 3 : 0) : 2;
355 break; 355 break;
356 case 2: 356 case 2:
357 if (s->init4) { 357 if (s->init4) {