From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RljWx-0004e4-1U for qemu-devel@nongnu.org; Fri, 13 Jan 2012 10:59:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RljWw-0002Np-6z for qemu-devel@nongnu.org; Fri, 13 Jan 2012 10:59:03 -0500 Message-ID: <4F10544E.6050501@web.de> Date: Fri, 13 Jan 2012 16:57:02 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1325894809-17322-1-git-send-email-andreas.faerber@web.de> <1326424168-15705-1-git-send-email-andreas.faerber@web.de> <1326424168-15705-9-git-send-email-andreas.faerber@web.de> <4F0FF7AD.2080403@siemens.com> In-Reply-To: <4F0FF7AD.2080403@siemens.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v3 8/8] prep: Use i82378 PCI->ISA bridge for 'prep' machine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: =?UTF-8?B?SGVydsOpIFBvdXNzaW5lYXU=?= , "qemu-ppc@nongnu.org" , "qemu-devel@nongnu.org" , Alexander Graf Am 13.01.2012 10:21, schrieb Jan Kiszka: > On 2012-01-13 04:09, Andreas Färber wrote: >> + isa_bus = DO_UPCAST(ISABus, qbus, qdev_get_child_bus(&pci->qdev, "isa.0")); >> + >> + i8259 = isa_bus->irqs; > > I think this is unneeded. The problem here was that isa_get_irq() needs an ISADevice*, not just the ISABus*, so I had to access ->irqs directly at this point. Some of the later ISA devices are optional, others will be moved to the pc87312. The i8042 might be an option if we really have to. > You only access i8259[8] later on for > initializing the m48t59. And immediately following your quote i8259[9] and i8259[11] for the host bridge. The alternative would be to access the i8259's IRQs (initialized in the PCI-ISA bridge needing the PCI host bridge) via a QOM property from here. Or access the PCI host bridge from the PCI-ISA bridge init. > But that one should be creatable as ISA device > now (m48t59_init_isa), no? Please check. Ah, that matches a patch by Hervé confusingly named "fix compilation". Using the ISA version even resolves the m48t59 io_base issue I reported earlier. I'll send a separate patch and rebase onto that. Andreas