ide: Remove wrong assertion
authorKevin Wolf <kwolf@redhat.com>
Wed, 16 Jan 2013 09:54:34 +0000 (10:54 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 17 Jan 2013 09:51:11 +0000 (10:51 +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 <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/ide/pci.c

index e6226e31973eaf380ecb880277b6bd7199ce0377..59fd53992a3d2f830be1b67118b3e71ace6bccff 100644 (file)
@@ -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;