summaryrefslogtreecommitdiff
path: root/hw/i8259.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-31 23:12:09 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-31 23:12:09 +0000
commit2bb081f7a0ffafb226f29c0a11f55d388d833c7e (patch)
tree830811b522958a3910a17d882c59411550aac20e /hw/i8259.c
parenta2cce02c48cb9fda5dff3f6a8505380af7d392ff (diff)
downloadqemu-2bb081f7a0ffafb226f29c0a11f55d388d833c7e.tar.gz
Fix i8259 initialization, by Bernhard Kauer.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3100 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/i8259.c')
-rw-r--r--hw/i8259.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i8259.c b/hw/i8259.c
index 4b25df3b9c..5063770797 100644
--- a/hw/i8259.c
+++ b/hw/i8259.c
@@ -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) {