Received: from eggs.gnu.org ([140.186.70.92]:52553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QITTH-0002Af-3v for qemu-devel@nongnu.org; Fri, 06 May 2011 18:26:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QITTG-0005Aj-4T for qemu-devel@nongnu.org; Fri, 06 May 2011 18:26:03 -0400 Received: from va3ehsobe006.messaging.microsoft.com ([216.32.180.16]:16473 helo=VA3EHSOBE006.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QITTF-0005Ac-UE for qemu-devel@nongnu.org; Fri, 06 May 2011 18:26:02 -0400 Date: Fri, 6 May 2011 17:25:32 -0500 From: Scott Wood Message-ID: <20110506172532.6f03cd81@schlenkerla.am.freescale.net> In-Reply-To: <1304683237-26177-6-git-send-email-agraf@suse.de> References: <1304683237-26177-1-git-send-email-agraf@suse.de> <1304683237-26177-6-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 5/7] PPC: Implement e500 (FSL) MMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "Edgar E. Iglesias" , Liu Yu , QEMU-devel Developers On Fri, 6 May 2011 14:00:35 +0200 Alexander Graf wrote: > +static inline void booke206_flush_tlb_one(ppc_tlb_t *tlb, int num) > +{ > + int i; > + > + for (i =3D 0; i < num; i++) { > + if ((tlb[i].tlbe.prot & PAGE_VALID) && > + !(tlb[i].tlbe.attr & MAS1_IPROT)) { > + tlb[i].tlbe.prot =3D 0; > + } > + } > +} When this is called on reset, we want to ignore IPROT. The valid check seems unnecessary. > +void helper_booke206_tlbsx(target_ulong address_hi, target_ulong address= _lo) What is address_hi? =46rom gen_tlbsx_booke206() it looks like these two arguments correspond to the two operands, so shouldn't they be added together? I only see address_lo used. -Scott