[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 06/11] ide: cmd_exec_dev_diagnostic() always set erro
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 06/11] ide: cmd_exec_dev_diagnostic() always set error register to 0x01 |
Date: |
Thu, 16 Jan 2014 21:35:14 +0400 |
From: David du Colombier <address@hidden>
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Ă©mi Pommarel for reporting this issue.
Signed-off-by: David du Colombier <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
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, uint8_t
cmd)
s->status = 0; /* ATAPI spec (v6) section 9.10 defines packet
* devices to return a clear status register
* with READY_STAT *not* set. */
+ s->error = 0x01;
} else {
s->status = READY_STAT | SEEK_STAT;
/* The bits of the error register are not as usual for this command!
--
1.7.10.4
- [Qemu-devel] [PULL 03/11] Add bios-256k.bin to BLOBS on Makefile, (continued)
- [Qemu-devel] [PULL 03/11] Add bios-256k.bin to BLOBS on Makefile, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 10/11] pc-bios: Remove execute flag from BIOS files, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 04/11] exec: Exclude non portable function for MinGW, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 08/11] linux-user: fixed getsockopt() optlen, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 11/11] vl: Add a blank space between the variable and '=', Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 09/11] linux-user: fixed recvfrom() addrlen, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 01/11] docs: Fix typo in QMP WAKEUP example, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 05/11] virtio-balloon: don't hardcode config size value, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 06/11] ide: cmd_exec_dev_diagnostic() always set error register to 0x01,
Michael Tokarev <=
- Re: [Qemu-devel] [Qemu-trivial] [PULL 00/11] Trivial patches for 2014-01-16, Michael Tokarev, 2014/01/25
- Re: [Qemu-devel] [PULL 00/11] Trivial patches for 2014-01-16, Peter Maydell, 2014/01/30