From: ths Date: Wed, 24 Jan 2007 01:12:42 +0000 (+0000) Subject: Fix DMA timeouts on FreeBSD, by Carlo Marcelo Arenas Belon. X-Git-Tag: release_0_9_1~1546 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=43c47f9f642ef5f10b426da6d6114a52aa200fa3;p=qemu-xen-3.3-testing.git Fix DMA timeouts on FreeBSD, by Carlo Marcelo Arenas Belon. --- diff --git a/hw/ide.c b/hw/ide.c index afa06f80..8c9b6e6d 100644 --- a/hw/ide.c +++ b/hw/ide.c @@ -2230,7 +2230,6 @@ static void ide_dma_start(IDEState *s, BlockDriverCompletionFunc *dma_cb) return; bm->ide_if = s; bm->dma_cb = dma_cb; - bm->cur_addr = bm->addr; bm->cur_prd_last = 0; bm->cur_prd_addr = 0; bm->cur_prd_len = 0; @@ -2363,6 +2362,7 @@ static void bmdma_addr_writel(void *opaque, uint32_t addr, uint32_t val) printf("%s: 0x%08x\n", __func__, val); #endif bm->addr = val & ~3; + bm->cur_addr = bm->addr; } static void bmdma_map(PCIDevice *pci_dev, int region_num,