From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaKKD-0000v6-1w for qemu-devel@nongnu.org; Sun, 09 Aug 2009 22:09:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaKK8-0000tp-Hf for qemu-devel@nongnu.org; Sun, 09 Aug 2009 22:09:24 -0400 Received: from [199.232.76.173] (port=48310 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaKK8-0000tm-BH for qemu-devel@nongnu.org; Sun, 09 Aug 2009 22:09:20 -0400 Received: from mail.gmx.net ([213.165.64.20]:53580) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MaKK7-0005ga-Pi for qemu-devel@nongnu.org; Sun, 09 Aug 2009 22:09:20 -0400 From: "Jan-Simon =?utf-8?q?M=C3=B6ller?=" Subject: Re: [Qemu-devel] qemu-arm fails on test-mmap - take #2 Date: Mon, 10 Aug 2009 04:09:04 +0200 References: <200908100145.52476.dl9pf@gmx.de> In-Reply-To: <200908100145.52476.dl9pf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908100409.04926.dl9pf@gmx.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org A quick hack around is this: diff --git a/linux-user/mmap.c b/linux-user/mmap.c index e05caa0..a04d6b1 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -316,8 +316,14 @@ abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size) if (addr == addr_start) return (abi_ulong)-1; } - if (start == 0) - mmap_next_start = addr + size; + if (start == 0) { + abi_ulong mynext = addr + size ; + if ( (mynext > 0x5f000000) && (mynext < 0x65000000) ) { + mmap_next_start = 0x65000000 ; + } else { + mmap_next_start = addr + size; + } + } return addr; } But this is for sure not the real solution. Best, Jan-Simon