From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUJuW-0006U1-4a for qemu-devel@nongnu.org; Tue, 15 May 2012 11:43:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUJuL-0002j4-G2 for qemu-devel@nongnu.org; Tue, 15 May 2012 11:43:39 -0400 Received: from ch1ehsobe004.messaging.microsoft.com ([216.32.181.184]:36267 helo=ch1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUJuL-0002hi-BB for qemu-devel@nongnu.org; Tue, 15 May 2012 11:43:29 -0400 Message-ID: <4FB27612.3040705@freescale.com> Date: Tue, 15 May 2012 10:28:18 -0500 From: Scott Wood MIME-Version: 1.0 References: <20110707234405.GC6748@schlenkerla.am.freescale.net> <4FA7EE80.90801@adacore.com> <33FEFA18-85CE-4222-A7EB-50C77E379727@suse.de> <4FAA4CD7.7090705@adacore.com> In-Reply-To: <4FAA4CD7.7090705@adacore.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/4] ppc: booke206: use MAV=2.0 TSIZE definition, fix 4G pages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabien Chouteau Cc: Alexander Graf , qemu-devel@nongnu.org On 05/09/2012 05:54 AM, Fabien Chouteau wrote: > On 05/07/2012 06:28 PM, Alexander Graf wrote: >> Hi Fabien, >> >> Could you please elaborate a bit on the case that broke for you with these? The patches shouldn't change any guest facing behavior :o. >> >> > > My bad, > > The problem comes from my initialization of tlb entries at board reset. > I use MAS1_TSIZE_SHIFT: > > size = 0x1 << MAS1_TSIZE_SHIFT; /* 4 KBytes */ > > but since the definition as changed, the value is incorrect. It should > be: > > size = 0x10 << MAS1_TSIZE_SHIFT; /* 4 KBytes */ You should be using booke206_bytes_to_tsize(), or perhaps create some #defines for the various tsizes. -Scott