diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-11-07 14:13:05 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-11-07 14:13:05 +0000 |
commit | 4a6435639781214a14f3c6054955e5ef16298d72 (patch) | |
tree | fb4d38641d83dc4bf98b56aa91a0d070db0ae425 /hw/ide/macio.c | |
parent | b55a37c981914aa8ecd21b9a2a2fb37f39b917c5 (diff) |
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>
Diffstat (limited to 'hw/ide/macio.c')
-rw-r--r-- | hw/ide/macio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 424eb454b7..d1bdb4967f 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -307,8 +307,7 @@ static void pmac_ide_reset(void *opaque) { MACIOIDEState *d = opaque; - ide_reset(d->bus.ifs +0); - ide_reset(d->bus.ifs +1); + ide_bus_reset(&d->bus); } /* hd_table must contain 4 block drivers */ |