[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] ide: Remove wrong assertion
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH] ide: Remove wrong assertion |
Date: |
Wed, 16 Jan 2013 10:54:34 +0100 |
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 <address@hidden>
---
hw/ide/pci.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/hw/ide/pci.c b/hw/ide/pci.c
index e6226e3..59fd539 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;
--
1.7.6.5
- [Qemu-devel] [PATCH] ide: Remove wrong assertion,
Kevin Wolf <=