diff options
author | Kevin Wolf <kwolf@redhat.com> | 2012-11-20 17:27:44 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2012-11-21 09:47:34 +0100 |
commit | 72bcca73c7a67c8506fa737618861ad413dabf38 (patch) | |
tree | 231a8934f65960f154d20d9a6dc2c6c050cd3aed /hw/ide/core.c | |
parent | 038268e2e8087ee2fd8987a77ba580e15f14c147 (diff) | |
download | hqemu-72bcca73c7a67c8506fa737618861ad413dabf38.zip hqemu-72bcca73c7a67c8506fa737618861ad413dabf38.tar.gz |
ide: Fix status register after short PRDs
When failing a request because the length of the regions described by
the PRDT was too short for the requested number of sectors, the IDE
emulation forgot to update the status register, so that the device would
keep the BSY flag set indefinitely.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/ide/core.c')
-rw-r--r-- | hw/ide/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ide/core.c b/hw/ide/core.c index c2ab787..8da894f 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -625,6 +625,7 @@ void ide_dma_cb(void *opaque, int ret) if (s->bus->dma->ops->prepare_buf(s->bus->dma, ide_cmd_is_read(s)) == 0) { /* The PRDs were too short. Reset the Active bit, but don't raise an * interrupt. */ + s->status = READY_STAT | SEEK_STAT; goto eot; } |