qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch] make PCI work with Windows NT 4 guest


From: Ben Pfaff
Subject: [Qemu-devel] [patch] make PCI work with Windows NT 4 guest
Date: Tue, 13 Jul 2004 23:18:04 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

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: address@hidden
web: http://benpfaff.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]