Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ixj1W-0006yB-DA for qemu-devel@nongnu.org; Thu, 29 Nov 2007 08:01:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ixj1Q-0006pm-Kc for qemu-devel@nongnu.org; Thu, 29 Nov 2007 08:01:44 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ixj1Q-0006pL-7u for qemu-devel@nongnu.org; Thu, 29 Nov 2007 08:01:40 -0500 Received: from province.act-europe.fr ([212.99.106.214]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ixj1P-0001PI-8f for qemu-devel@nongnu.org; Thu, 29 Nov 2007 08:01:39 -0500 Received: from localhost (localhost [127.0.0.1]) by filtered-province.act-europe.fr (Postfix) with ESMTP id B4A96166A2F for ; Thu, 29 Nov 2007 14:01:00 +0100 (CET) Received: from province.act-europe.fr ([127.0.0.1]) by localhost (province.act-europe.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SXnkKyNn4grx for ; Thu, 29 Nov 2007 14:01:00 +0100 (CET) Received: from [10.10.127.242] (dhcp-guest-242.act-europe.fr [10.10.127.242]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by province.act-europe.fr (Postfix) with ESMTP id 6ABCE166A0D for ; Thu, 29 Nov 2007 14:01:00 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v752.3) Message-Id: Content-Type: multipart/mixed; boundary=Apple-Mail-2--1008995989 From: Tristan Gingold Date: Thu, 29 Nov 2007 14:05:36 +0100 Subject: [Qemu-devel] PATCH: ide.c: send irq for WIN_DIAGNOSE Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Apple-Mail-2--1008995989 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=flowed Hi, according to ATA std: The pending interrupt condition shall be set by: =E2=88=92 the completion of a command; or This patch sends an irq for WIN_DIAGNOSE (and WIN_SRST) Tristan. --Apple-Mail-2--1008995989 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=qemu.diff Content-Disposition: attachment; filename=qemu.diff 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) --Apple-Mail-2--1008995989--