summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-01-16 10:54:34 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2013-01-17 10:51:11 +0100
commit6bf3ee07ff55aa795010a8e071826f38e9a26112 (patch)
treeec8a860c05f87e3f76224a0161dc4f3648049d26
parent6d759117d3fd28e38c49c56c9de206cc718d32fa (diff)
downloadqemu-6bf3ee07ff55aa795010a8e071826f38e9a26112.tar.gz
ide: Remove wrong assertion
The Bus Master IDE Active bit (BM_STATUS_DMAING) is not only set when the request is still in flight, but also when it has completed and the size of the physical memory regions in the PRDT was larger than the transfer size. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--hw/ide/pci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/ide/pci.c b/hw/ide/pci.c
index e6226e3197..59fd53992a 100644
--- a/hw/ide/pci.c
+++ b/hw/ide/pci.c
@@ -311,7 +311,6 @@ void bmdma_cmd_writeb(BMDMAState *bm, uint32_t val)
if (bm->bus->dma->aiocb) {
bdrv_drain_all();
assert(bm->bus->dma->aiocb == NULL);
- assert((bm->status & BM_STATUS_DMAING) == 0);
}
} else {
bm->cur_addr = bm->addr;