Revision a9ceb76d hw/mac_dbdma.c
b/hw/mac_dbdma.c | ||
---|---|---|
402 | 402 |
ch->io.dma_end = dbdma_end; |
403 | 403 |
ch->io.is_dma_out = 1; |
404 | 404 |
ch->processing = 1; |
405 |
ch->rw(&ch->io); |
|
405 |
if (ch->rw) { |
|
406 |
ch->rw(&ch->io); |
|
407 |
} |
|
406 | 408 |
} |
407 | 409 |
|
408 | 410 |
static void start_input(DBDMA_channel *ch, int key, uint32_t addr, |
... | ... | |
425 | 427 |
ch->io.dma_end = dbdma_end; |
426 | 428 |
ch->io.is_dma_out = 0; |
427 | 429 |
ch->processing = 1; |
428 |
ch->rw(&ch->io); |
|
430 |
if (ch->rw) { |
|
431 |
ch->rw(&ch->io); |
|
432 |
} |
|
429 | 433 |
} |
430 | 434 |
|
431 | 435 |
static void load_word(DBDMA_channel *ch, int key, uint32_t addr, |
... | ... | |
688 | 692 |
|
689 | 693 |
if (status & ACTIVE) |
690 | 694 |
qemu_bh_schedule(dbdma_bh); |
691 |
if (status & FLUSH)
|
|
695 |
if ((status & FLUSH) && ch->flush)
|
|
692 | 696 |
ch->flush(&ch->io); |
693 | 697 |
} |
694 | 698 |
|
Also available in: Unified diff