Skip to contentSkip to conversation

Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c.

PATCH Superseded Li Zhi Hui 1 participant 1 message Mar 30, 2012

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Li Zhi Hui

author
#0 lore raw

PATCH v2 1/1 Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c.

---
 hw/dma.c |   15 ----
 hw/fdc.c |  259 +++++++++++++++++++++++++++++++++++++++++++++-----------------
 2 files changed, 189 insertions(+), 85 deletions(-)
hw/dma.c +0 -15
index 0a9322d..7de4498 100644
@@ -357,15 +357,6 @@ static void DMA_run (void)
 {
     struct dma_cont *d;
     int icont, ichan;
-    int rearm = 0;
-    static int running = 0;
-
-    if (running) {
-        rearm = 1;
-        goto out;
-    } else {
-        running = 1;
-    }
 
     d = dma_controllers;
 
@@ -377,15 +368,9 @@ static void DMA_run (void)
 
             if ((0 == (d->mask & mask)) && (0 != (d->status & (mask << 4)))) {
                 channel_run (icont, ichan);
-                rearm = 1;
             }
         }
     }
-
-    running = 0;
-out:
-    if (rearm)
-        qemu_bh_schedule_idle(dma_bh);
 }
 
 static void DMA_run_bh(void *unused)
hw/fdc.c +189 -70

327 lines not on this page · raw message

Signature · 1 line
1.7.4.1