From patchwork Fri Aug 28 13:28:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 32374 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 09E9BB6F31 for ; Sat, 29 Aug 2009 00:22:19 +1000 (EST) Received: from localhost ([127.0.0.1]:48855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh28y-0003XN-MJ for incoming@patchwork.ozlabs.org; Fri, 28 Aug 2009 10:09:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mh1Xw-0004pX-T6 for qemu-devel@nongnu.org; Fri, 28 Aug 2009 09:31:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mh1Xq-0004gP-5V for qemu-devel@nongnu.org; Fri, 28 Aug 2009 09:31:14 -0400 Received: from [199.232.76.173] (port=38618 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh1Xo-0004dX-QN for qemu-devel@nongnu.org; Fri, 28 Aug 2009 09:31:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49375) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mh1Xo-0004qg-7G for qemu-devel@nongnu.org; Fri, 28 Aug 2009 09:31:08 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7SDV7bL027455 for ; Fri, 28 Aug 2009 09:31:07 -0400 Received: from localhost.localdomain (vpn2-8-216.ams2.redhat.com [10.36.8.216]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7SDUpnq030148; Fri, 28 Aug 2009 09:31:06 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Fri, 28 Aug 2009 15:28:22 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 11/16] Save irq_state into PCII440FXState X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- hw/piix_pci.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/piix_pci.c b/hw/piix_pci.c index 92884d9..5f34678 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -46,6 +46,7 @@ struct PCII440FXState { PCIDevice dev; target_phys_addr_t isa_page_descs[384 / 4]; uint8_t smm_enabled; + PIIX3IrqState *irq_state; }; static void i440fx_addr_writel(void* opaque, uint32_t addr, uint32_t val) @@ -236,6 +237,7 @@ PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn, qemu_irq * d = pci_create_simple(b, 0, "i440FX"); *pi440fx_state = DO_UPCAST(PCII440FXState, dev, d); + (*pi440fx_state)->irq_state = irq_state; irq_state->piix3 = DO_UPCAST(PIIX3State, dev, pci_create_simple(b, -1, "PIIX3"));