Received: from eggs.gnu.org ([2001:4830:134:3::10]:51222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCB56-0007fT-MC for qemu-devel@nongnu.org; Fri, 27 Apr 2018 17:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCB54-0005hv-9w for qemu-devel@nongnu.org; Fri, 27 Apr 2018 17:39:04 -0400 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]:53729) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fCB54-0005h6-3A for qemu-devel@nongnu.org; Fri, 27 Apr 2018 17:39:02 -0400 Date: Fri, 27 Apr 2018 23:38:44 +0200 (CEST) From: BALATON Zoltan In-Reply-To: Message-ID: References: <20180306040154.3669-1-david@gibson.dropbear.id.au> <20180306040154.3669-4-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Re: [Qemu-devel] [PULL 03/30] ppc440: Add emulation of plb-pcix controller found in some 440 SoCs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: David Gibson , Alexander Graf , qemu-ppc , QEMU Developers On Fri, 27 Apr 2018, Peter Maydell wrote: > On 6 March 2018 at 04:01, David Gibson wrote: >> From: BALATON Zoltan >> >> This is the PCIX controller found in newer 440 core SoCs e.g. the >> AMMC 460EX. The device tree refers to this as plb-pcix compared to >> the plb-pci controller in older 440 SoCs. >> >> Signed-off-by: BALATON Zoltan >> [dwg: Remove hwaddr from trace-events, that doesn't work with some >> trace backends] >> Signed-off-by: David Gibson > >> + case PCIX0_PIM2SAL: >> + s->pim[2].sa &= 0xffffffff00000000ULL; >> + s->pim[2].sa = val; >> + ppc440_pcix_update_pim(s, 2); >> + break; > > Coverity (CID1390577) points out that the "s->pim[2].sa = val;" > overwrites the value set by the &= line, making it pointless. > Should this be "|= val" like the other cases in this switch? Yes this is a typo and I meant |= here like in other cases. I'll send a patch to correct this with the next batch of changes. Thanks for spotting it. Regards, BALATON Zoltan