Received: from eggs.gnu.org ([2001:4830:134:3::10]:38963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buxXB-0008ER-S9 for qemu-devel@nongnu.org; Fri, 14 Oct 2016 04:08:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buxX5-0004qQ-OO for qemu-devel@nongnu.org; Fri, 14 Oct 2016 04:08:04 -0400 Received: from 11.mo1.mail-out.ovh.net ([188.165.48.29]:54492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buxX5-0004pj-IQ for qemu-devel@nongnu.org; Fri, 14 Oct 2016 04:07:59 -0400 Received: from player726.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id 798591478D for ; Fri, 14 Oct 2016 10:07:58 +0200 (CEST) References: <1475479496-16158-1-git-send-email-clg@kaod.org> <1475479496-16158-18-git-send-email-clg@kaod.org> <20161014063218.GS28562@umbus> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: <6f1fcee2-2b6c-9033-acb2-98ecbba1fdf8@kaod.org> Date: Fri, 14 Oct 2016 10:07:53 +0200 MIME-Version: 1.0 In-Reply-To: <20161014063218.GS28562@umbus> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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 Cc: qemu-ppc@nongnu.org, Benjamin Herrenschmidt , qemu-devel@nongnu.org >> --- a/hw/ppc/pnv.c >> +++ b/hw/ppc/pnv.c >> @@ -318,15 +318,24 @@ static void ppc_powernv_reset(void) >> * have a CPLD that will collect the SerIRQ and shoot them as a >> * single level interrupt to the P8 chip. So let's setup a hook >> * for doing just that. >> - * >> - * Note: The actual interrupt input isn't emulated yet, this will >> - * come with the PSI bridge model. >> */ >> static void pnv_lpc_isa_irq_handler_cpld(void *opaque, int n, int level) >> { >> - /* We don't yet emulate the PSI bridge which provides the external >> - * interrupt, so just drop interrupts on the floor >> - */ >> + static uint32_t irqstate; > > Hmm.. static local with important state? That it's not clear whether > it should be per-chip or not? > > I'm not averse to hacks for early bringup, but it should at least have > a FIXME comment on it. yes. I will see if I can make a "irq_cpld' attribute of the chip instead. It should be cleaner. Thanks, C.