Skip to content

Commit

Permalink
ide: Remove wrong assertion
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
kevmw authored and stefanhaRH committed Jan 17, 2013
1 parent 6d75911 commit 6bf3ee0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hw/ide/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6bf3ee0

Please sign in to comment.