qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [patch] make PCI work with Windows NT 4 guest
@ 2004-07-14  6:18 Ben Pfaff
  2004-07-14 11:01 ` Johannes Schindelin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ben Pfaff @ 2004-07-14  6:18 UTC (permalink / raw)
  To: qemu-devel

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:

-- 
Ben Pfaff 
email: blp@cs.stanford.edu
web: http://benpfaff.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-10-09 19:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-14  6:18 [Qemu-devel] [patch] make PCI work with Windows NT 4 guest Ben Pfaff
2004-07-14 11:01 ` Johannes Schindelin
2004-07-14 15:27   ` Ben Pfaff
2004-07-15 10:03     ` [Qemu-devel] Win98 network & cirrus logic success Johannes Schindelin
2004-07-15 18:45 ` [Qemu-devel] [patch] make PCI work with Windows NT 4 guest Hetz Ben Hamo
2004-10-09 16:49 ` Fabrice Bellard
2004-10-09 19:22   ` Magnus Damm

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).