From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IYkfS-0003yf-7q for qemu-devel@nongnu.org; Fri, 21 Sep 2007 11:43:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IYkfQ-0003up-Om for qemu-devel@nongnu.org; Fri, 21 Sep 2007 11:43:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYkfQ-0003uc-IJ for qemu-devel@nongnu.org; Fri, 21 Sep 2007 11:43:44 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IYkfQ-00064w-3i for qemu-devel@nongnu.org; Fri, 21 Sep 2007 11:43:44 -0400 From: Paul Brook Subject: Re: [Qemu-devel] TARGET_PAGE_SIZE > host page size Date: Fri, 21 Sep 2007 16:43:37 +0100 References: <20070921132947.GN20171@edgar.underground.se.axis.com> In-Reply-To: <20070921132947.GN20171@edgar.underground.se.axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709211643.38028.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" On Friday 21 September 2007, Edgar E. Iglesias wrote: > Hello, > > I'm working on a new target port and the linux-user emulation is fairly > functional and passing quite extensive test-suites. > > I've got a problem though, my target has 8K page sizes, so for example when > running on a x86 host TARGET_PAGE_SIZE > host page size. > > I'm not very familiar with linux-user/mmap.c, but I though I'd let you know > that with this patch things seem to be working fine for me. I am not sure > if the patch is correct so if anyone with more experience sees an obvious > flaw I'd appreciate to know. qemu_host_page_size is always >= TARGET_PAGE_SIZE. See exec.c. There are several existing target that have >4k page sizes. Paul