From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfZah-0007Tm-PZ for qemu-devel@nongnu.org; Tue, 07 Apr 2015 15:55:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfZae-0003d4-Gq for qemu-devel@nongnu.org; Tue, 07 Apr 2015 15:55:19 -0400 Received: from mail-by2on0125.outbound.protection.outlook.com ([207.46.100.125]:38960 helo=na01-by2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfZae-0003cr-6K for qemu-devel@nongnu.org; Tue, 07 Apr 2015 15:55:16 -0400 Message-ID: <1428434521.22867.448.camel@freescale.com> From: Scott Wood Date: Tue, 7 Apr 2015 14:22:01 -0500 In-Reply-To: <20150330112121.23718.61872.malonedeb@wampee.canonical.com> References: <20150330112121.23718.61872.malonedeb@wampee.canonical.com> <20150330112121.23718.61872.malonedeb@wampee.canonical.com> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Bug 1438144] [NEW] Page sizes are not interpreted correctly for E500/E500MC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 1438144 <1438144@bugs.launchpad.net> Cc: qemu-devel@nongnu.org On Mon, 2015-03-30 at 11:21 +0000, WGH wrote: > Public bug reported: > > http://cache.freescale.com/files/32bit/doc/ref_manual/E500CORERM.pdf - see 2.12.5.2 MAS Register 1 (MAS1), p. 2-41 > http://cache.freescale.com/files/32bit/doc/ref_manual/E500MCRM.pdf - see 2.16.6.2 MAS Register 1 (MAS1), p. 2-54 > > According to these documents, variable page size for TLB1 is computed as > 4K ** TSIZE. > > However, QEMU always treats it as if it was 1K << TSIZE, even if options > like "-cpu e500mc" are supplied to qemu. MMU v2 (implemented in e6500) extended the TSIZE field so that 1K << TSIZE is correct. The extension was on the LSB side so that it works fine as long as the low bit of the new TSIZE (which is reserved on e500v2/mc) is zero. -Scott