From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buwh8-0002gX-2e for qemu-devel@nongnu.org; Fri, 14 Oct 2016 03:14:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buwh3-0008C0-0H for qemu-devel@nongnu.org; Fri, 14 Oct 2016 03:14:17 -0400 Message-ID: <1476429216.2654.109.camel@kernel.crashing.org> From: Benjamin Herrenschmidt Date: Fri, 14 Oct 2016 18:13:36 +1100 In-Reply-To: <20161014063218.GS28562@umbus> References: <1475479496-16158-1-git-send-email-clg@kaod.org> <1475479496-16158-18-git-send-email-clg@kaod.org> <20161014063218.GS28562@umbus> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 17/20] ppc/pnv: Add cut down PSI bridge model and hookup external interrupt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson , =?ISO-8859-1?Q?C=E9dric?= Le Goater Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org On Fri, 2016-10-14 at 17:32 +1100, David Gibson wrote: > >=C2=A0 static void pnv_lpc_isa_irq_handler_cpld(void *opaque, int n, i= nt level) > >=C2=A0 { > > -=C2=A0=C2=A0=C2=A0 /* We don't yet emulate the PSI bridge which prov= ides the external > > -=C2=A0=C2=A0=C2=A0=C2=A0 * interrupt, so just drop interrupts on the= floor > > -=C2=A0=C2=A0=C2=A0=C2=A0 */ > > +=C2=A0=C2=A0=C2=A0 static uint32_t irqstate; >=20 > Hmm.. static local with important state?=C2=A0 That it's not clear whet= her > it should be per-chip or not? >=20 > I'm not averse to hacks for early bringup, but it should at least have > a FIXME comment on it. This emulates the external FPGA no ? There's only ever one ... well I suppose one could make a machine with more but that hasn't been done yet. Ideally it could be a whole device by itself who feeds the ISA irqs and outputs the final IRQ but that's overkill. Cheers, Ben.