From 9cdd03a791af17a1b7d3cbbaddcf46d64d704795 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 28 Aug 2009 16:37:42 +0200 Subject: ide: move cmd+irq from IDEState to IDEBus. These variables are per bus, not per drive. Lets move them and cleanup things a bit. And fix the cmd migration bug for real. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/ide/macio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/ide/macio.c') diff --git a/hw/ide/macio.c b/hw/ide/macio.c index da2baa0..a11223e 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -124,7 +124,7 @@ static void pmac_ide_transfer_cb(void *opaque, int ret) /* end of transfer ? */ if (s->nsector == 0) { s->status = READY_STAT | SEEK_STAT; - ide_set_irq(s); + ide_set_irq(s->bus); } /* end of DMA ? */ -- cgit v1.1