From patchwork Thu Feb 21 17:34:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 222386 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 07A172C02A2 for ; Fri, 22 Feb 2013 04:55:18 +1100 (EST) Received: from localhost ([::1]:39005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8aMT-00012E-Li for incoming@patchwork.ozlabs.org; Thu, 21 Feb 2013 12:55:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8a3o-0004nQ-PO for qemu-devel@nongnu.org; Thu, 21 Feb 2013 12:36:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8a3h-0001gC-Ut for qemu-devel@nongnu.org; Thu, 21 Feb 2013 12:35:56 -0500 Received: from srv3.whshost.com ([46.229.151.194]:46313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8a3h-0001ex-Oe; Thu, 21 Feb 2013 12:35:49 -0500 Received: from [77.236.24.8] (port=41353 helo=localhost) by srv3.whshost.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1U8a3e-002qjD-JP; Thu, 21 Feb 2013 18:35:46 +0100 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= To: qemu-devel@nongnu.org Date: Thu, 21 Feb 2013 18:34:10 +0100 Message-Id: <1361468051-19292-1-git-send-email-amade@asmblr.net> X-Mailer: git-send-email 1.8.1.4 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - srv3.whshost.com X-AntiAbuse: Original Domain - nongnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - asmblr.net X-Get-Message-Sender-Via: srv3.whshost.com: authenticated_id: amade@asmblr.net X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 46.229.151.194 X-Mailman-Approved-At: Thu, 21 Feb 2013 12:54:20 -0500 Cc: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , qemu-ppc@nongnu.org Subject: [Qemu-devel] [PATCH 1/2] Fix dma interrupt X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org In openbios (drivers/ide.c) they are set to 0000000d 00000000 00000002 00000000 0000000e 00000000 00000003 00000000 0000000f 00000000 00000004 00000000 (The last one seems to be not implemented in qemu) It follows convention of how they are set on real machines, both ide and dma ones are increased Real machine one: http://web.archive.org/web/20090107151044/http://penguinppc.org/historical/dev-trees-html/g4_agp_500_2.html 00000013 00000001 0000000b 00000000 00000014 00000001 0000000c 00000000 00000015 00000001 0000000d 00000000 Signed-off-by: Amadeusz Sławiński --- hw/ppc/mac_newworld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c index 065ea87..a08a6b2 100644 --- a/hw/ppc/mac_newworld.c +++ b/hw/ppc/mac_newworld.c @@ -370,7 +370,7 @@ static void ppc_core99_init(QEMUMachineInitArgs *args) qdev_connect_gpio_out(dev, 1, pic[0x0d]); /* IDE */ qdev_connect_gpio_out(dev, 2, pic[0x02]); /* IDE DMA */ qdev_connect_gpio_out(dev, 3, pic[0x0e]); /* IDE */ - qdev_connect_gpio_out(dev, 4, pic[0x02]); /* IDE DMA */ + qdev_connect_gpio_out(dev, 4, pic[0x03]); /* IDE DMA */ macio_init(macio, pic_mem, escc_bar); /* We only emulate 2 out of 3 IDE controllers for now */