From 4a6435639781214a14f3c6054955e5ef16298d72 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 7 Nov 2009 14:13:05 +0000 Subject: 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 --- hw/ide/macio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hw/ide/macio.c') 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 */ -- cgit v1.2.3