This is the minimal patch that, combined with my previous patch,
allows a Windows NT 4 guest to boot with qemu's PCI support
enabled. It seems that WNT4 is pretty grumpy about the DSC
("device seek complete") bit in the status register. If we don't
set it on WIN_SPECIFY, WNT4 times out and gives up on the device.
diff -u -p -u -r1.26 ide.c
--- hw/ide.c 25 Jun 2004 14:54:19 -0000 1.26
+++ hw/ide.c 14 Jul 2004 06:15:40 -0000
@@ -1477,7 +1477,7 @@ static void ide_ioport_write(void *opaqu
case WIN_SPECIFY:
case WIN_RECAL:
s->error = 0;
- s->status = READY_STAT;
+ s->status = READY_STAT | SEEK_STAT;
ide_set_irq(s);
break;
case WIN_SETMULT: