* [Qemu-devel] Patch: PIC-i8259 mode transition wrong
@ 2007-07-31 14:48 Bernhard Kauer
0 siblings, 0 replies; only message in thread
From: Bernhard Kauer @ 2007-07-31 14:48 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 96 bytes --]
The PIC initilization should respect the fourth byte init
bit in single mode.
Bernhard Kauer
[-- Attachment #2: qemu_pic_single_fix.diff --]
[-- Type: text/x-diff, Size: 561 bytes --]
Index: hw/i8259.c
===================================================================
RCS file: /sources/qemu/qemu/hw/i8259.c,v
retrieving revision 1.22
diff -u -r1.22 i8259.c
--- hw/i8259.c 7 Apr 2007 18:14:41 -0000 1.22
+++ hw/i8259.c 31 Jul 2007 14:31:14 -0000
@@ -351,7 +351,7 @@
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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-31 14:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31 14:48 [Qemu-devel] Patch: PIC-i8259 mode transition wrong Bernhard Kauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).