mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
IDE: Fix reset handling
Problem: x86 systems could not survive a few system_resets. Clear most of IDE state when reset. Implement the missing reset handlers. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
b55a37c981
commit
4a64356397
8 changed files with 88 additions and 12 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue