diff options
Diffstat (limited to 'hw/ide/cmd646.c')
-rw-r--r-- | hw/ide/cmd646.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 45e2cdb..b2a3e43 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -193,8 +193,10 @@ static void cmd646_reset(void *opaque) PCIIDEState *d = opaque; unsigned int i; - for (i = 0; i < 2; i++) - ide_dma_cancel(&d->bmdma[i]); + for (i = 0; i < 2; i++) { + ide_bus_reset(&d->bus[i]); + ide_dma_reset(&d->bmdma[i]); + } } /* CMD646 PCI IDE controller */ |