qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] ata bug
@ 2004-01-23 12:29 Jens Axboe
  0 siblings, 0 replies; only message in thread
From: Jens Axboe @ 2004-01-23 12:29 UTC (permalink / raw)
  To: qemu-devel

Hi,

Writing some openbios ide code made me find this bug in qemu - atapi
need only clear busy stat, that is correct, but ata should set seek stat
in addition to ready stat.

Index: ide.c
===================================================================
RCS file: /cvsroot/qemu/qemu/ide.c,v
retrieving revision 1.6
diff -u -r1.6 ide.c
--- ide.c	22 Jan 2004 23:52:27 -0000	1.6
+++ ide.c	23 Jan 2004 12:18:46 -0000
@@ -1284,7 +1284,7 @@
             if (s->is_cdrom)
                 s->status = 0x00; /* NOTE: READY is _not_ set */
             else
-                s->status = READY_STAT;
+                s->status = READY_STAT | SEEK_STAT;
             ide_set_signature(s);
         }
     }

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-23 12:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-23 12:29 [Qemu-devel] ata bug Jens Axboe

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