Received: from eggs.gnu.org ([2001:4830:134:3::10]:33654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkMuu-0004QU-K7 for qemu-devel@nongnu.org; Tue, 31 Jul 2018 01:09:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkMut-0002PT-RL for qemu-devel@nongnu.org; Tue, 31 Jul 2018 01:09:52 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 31 Jul 2018 07:09:43 +0200 From: Sebastian Bauer In-Reply-To: References: <20180730043904.17023-1-mail@sebastianbauer.info> Message-ID: <01ddb520c0355680399999199f4f0e8d@sebastianbauer.info> Subject: Re: [Qemu-devel] [PATCH] sam460ex: Fix PCI interrupt connections List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: BALATON Zoltan , Alexander Graf , qemu-ppc , QEMU Developers , David Gibson Am 2018-07-31 01:15, schrieb Peter Maydell: > It would work. But creating an OR gate is half a dozen lines or so of > code, so it's not much more work than changing the PCI controller. > So we should prefer whichever is closest to what the real hardware > does, assuming we can determine that. The real way is not known. The only source of information is UBoot which sets the interrupt line to 32 for all PCI devices. At least AmigaOS doesn't overwrite this setting. But UBoot could be wrong of course, as the hardware provides only one PCI slot (I think the sm502 is also connected to that bus in a direct fashion, but it doesn't have an PCI IRQ). Technically, we could also modify UBoot to chose other lines, at least AmigaOS would continue to work (if this maps the QEMU wiring) but this UBoot would be incompatible to the original hardware. Bye Sebastian