From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43157 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdGlk-0001VK-5p for qemu-devel@nongnu.org; Thu, 13 Jan 2011 01:34:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdGlh-0000Q7-KU for qemu-devel@nongnu.org; Thu, 13 Jan 2011 01:34:47 -0500 Received: from sj-iport-5.cisco.com ([171.68.10.87]:43813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdGlh-0000Oi-D9 for qemu-devel@nongnu.org; Thu, 13 Jan 2011 01:34:45 -0500 From: David Ahern Date: Wed, 12 Jan 2011 23:34:36 -0700 Message-Id: <1294900477-23722-8-git-send-email-daahern@cisco.com> In-Reply-To: <1294900477-23722-1-git-send-email-daahern@cisco.com> References: <1294900477-23722-1-git-send-email-daahern@cisco.com> Subject: [Qemu-devel] [PATCH 7/8] x86_64 config: fix compile for CONFIG_IDE_ISA=n List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: David Ahern Signed-off-by: David Ahern --- hw/pc_piix.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 5046947..e794a82 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -38,9 +38,11 @@ #define MAX_IDE_BUS 2 +#ifdef CONFIG_IDE_ISA static const int ide_iobase[MAX_IDE_BUS] = { 0x1f0, 0x170 }; static const int ide_iobase2[MAX_IDE_BUS] = { 0x3f6, 0x376 }; static const int ide_irq[MAX_IDE_BUS] = { 14, 15 }; +#endif static void ioapic_init(IsaIrqState *isa_irq_state) { @@ -141,6 +143,7 @@ static void pc_init1(ram_addr_t ram_size, dev = pci_piix3_ide_init(pci_bus, hd, piix3_devfn + 1); idebus[0] = qdev_get_child_bus(&dev->qdev, "ide.0"); idebus[1] = qdev_get_child_bus(&dev->qdev, "ide.1"); +#ifdef CONFIG_IDE_ISA } else { for(i = 0; i < MAX_IDE_BUS; i++) { ISADevice *dev; @@ -149,6 +152,12 @@ static void pc_init1(ram_addr_t ram_size, idebus[i] = qdev_get_child_bus(&dev->qdev, "ide.0"); } } +#else + } else { + idebus[0] = NULL; + idebus[1] = NULL; + } +#endif pc_audio_init(pci_enabled ? pci_bus : NULL, isa_irq); -- 1.7.3.4