mirror of https://github.com/xemu-project/xemu.git
Fix i8259 initialization, by Bernhard Kauer.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3100 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
a2cce02c48
commit
2bb081f7a0
|
@ -351,7 +351,7 @@ static void pic_ioport_write(void *opaque, uint32_t addr, uint32_t val)
|
|||
break;
|
||||
case 1:
|
||||
s->irq_base = val & 0xf8;
|
||||
s->init_state = s->single_mode && s->init4 ? 3 : 2;
|
||||
s->init_state = s->single_mode ? (s->init4 ? 3 : 0) : 2;
|
||||
break;
|
||||
case 2:
|
||||
if (s->init4) {
|
||||
|
|
Loading…
Reference in New Issue