Received: from eggs.gnu.org ([2001:4830:134:3::10]:34540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3r7U-00034s-L8 for qemu-devel@nongnu.org; Thu, 16 Jan 2014 12:52:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3r7P-0004a4-HU for qemu-devel@nongnu.org; Thu, 16 Jan 2014 12:52:44 -0500 From: Michael Tokarev Date: Thu, 16 Jan 2014 21:35:14 +0400 Message-Id: <1389893719-16336-7-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1389893719-16336-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1389893719-16336-1-git-send-email-mjt@msgid.tls.msk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 06/11] ide: cmd_exec_dev_diagnostic() always set error register to 0x01 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@amazon.com Cc: qemu-trivial@nongnu.org, Michael Tokarev , David du Colombier <0intro@gmail.com>, qemu-devel@nongnu.org From: David du Colombier <0intro@gmail.com> This notably fix IDE CD probing on the Plan 9 operating system, which rely on the error register set by the Execute Device Diagnostic command to detect drive configurations. Thanks to R=C3=A9mi Pommarel for reporting this issue. Signed-off-by: David du Colombier <0intro@gmail.com> Signed-off-by: Michael Tokarev --- hw/ide/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ide/core.c b/hw/ide/core.c index e1f4c33..7783d58 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -1321,6 +1321,7 @@ static bool cmd_exec_dev_diagnostic(IDEState *s, ui= nt8_t cmd) s->status =3D 0; /* ATAPI spec (v6) section 9.10 defines packet * devices to return a clear status register * with READY_STAT *not* set. */ + s->error =3D 0x01; } else { s->status =3D READY_STAT | SEEK_STAT; /* The bits of the error register are not as usual for this comm= and! --=20 1.7.10.4