Il 28/10/2013 17:43, Paolo Bonzini ha scritto: > @@ -199,8 +199,8 @@ static void ide_restart_dma(IDEState *s, enum ide_dma_cmd > dma_cmd) > /* TODO This should be common IDE code */ > static void bmdma_restart_bh(void *opaque) > { > - BMDMAState *bm = opaque; > - IDEBus *bus = bm->bus; > + IDEBus *bus = opaque; > + BMDMAState *bm = DO_UPCAST(BMDMAState, dma, bus->dma); > IDEState *s; > bool is_read; > int error_status;
The corresponding change in qemu_bh_new is mistakenly in patch 19, rather than in this one. Paolo