qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] PATCH: ide.c: send irq for WIN_DIAGNOSE
@ 2007-11-29 13:05 Tristan Gingold
  2007-11-29 15:07 ` Carlo Marcelo Arenas Belon
  0 siblings, 1 reply; 6+ messages in thread
From: Tristan Gingold @ 2007-11-29 13:05 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 198 bytes --]

Hi,

according to ATA std:
   The pending interrupt condition shall be set by:
   − the completion of a command; or

This patch sends an irq for WIN_DIAGNOSE (and WIN_SRST)

Tristan.



[-- Attachment #2: qemu.diff --]
[-- Type: application/octet-stream, Size: 1283 bytes --]

Index: hw/ide.c
===================================================================
RCS file: /sources/qemu/qemu/hw/ide.c,v
retrieving revision 1.72
diff -c -r1.72 ide.c
*** hw/ide.c	18 Nov 2007 01:44:37 -0000	1.72
--- hw/ide.c	29 Nov 2007 12:57:51 -0000
***************
*** 2038,2054 ****
              }
              ide_set_irq(s);
              break;
-         case WIN_DIAGNOSE:
-             ide_set_signature(s);
-             s->status = 0x00; /* NOTE: READY is _not_ set */
-             s->error = 0x01;
-             break;
          case WIN_SRST:
              if (!s->is_cdrom)
                  goto abort_cmd;
              ide_set_signature(s);
              s->status = 0x00; /* NOTE: READY is _not_ set */
              s->error = 0x01;
              break;
          case WIN_PACKETCMD:
              if (!s->is_cdrom)
--- 2038,2051 ----
              }
              ide_set_irq(s);
              break;
          case WIN_SRST:
              if (!s->is_cdrom)
                  goto abort_cmd;
+         case WIN_DIAGNOSE:
              ide_set_signature(s);
              s->status = 0x00; /* NOTE: READY is _not_ set */
              s->error = 0x01;
+ 	    ide_set_irq(s);
              break;
          case WIN_PACKETCMD:
              if (!s->is_cdrom)

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

end of thread, other threads:[~2007-12-10 15:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29 13:05 [Qemu-devel] PATCH: ide.c: send irq for WIN_DIAGNOSE Tristan Gingold
2007-11-29 15:07 ` Carlo Marcelo Arenas Belon
2007-11-29 16:46   ` Tristan Gingold
2007-11-30 14:12     ` Carlo Marcelo Arenas Belon
2007-12-03  9:04       ` Tristan Gingold
2007-12-10 15:29       ` Tristan Gingold

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