From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kad0l-0004GG-Ay for qemu-devel@nongnu.org; Tue, 02 Sep 2008 17:02:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kad0j-0004Fb-Ma for qemu-devel@nongnu.org; Tue, 02 Sep 2008 17:02:02 -0400 Received: from [199.232.76.173] (port=32934 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kad0j-0004FY-Ga for qemu-devel@nongnu.org; Tue, 02 Sep 2008 17:02:01 -0400 Received: from csl.cornell.edu ([128.84.224.10]:1797 helo=vlsi.csl.cornell.edu) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kad0j-0007Iy-JM for qemu-devel@nongnu.org; Tue, 02 Sep 2008 17:02:01 -0400 Received: from stanley.csl.cornell.edu (stanley.csl.cornell.edu [128.84.224.15]) by vlsi.csl.cornell.edu (8.13.4/8.13.4) with ESMTP id m82L1nWa064790 for ; Tue, 2 Sep 2008 17:01:55 -0400 (EDT) Date: Tue, 2 Sep 2008 17:01:49 -0400 (EDT) From: Vince Weaver Message-ID: <20080902165557.X88242@stanley.csl.cornell.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: [Qemu-devel] checking if linux-user address is mapped (sparc) 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 Hello so now I'm trying to get the vpr spec2k benchmarks going under sparc32plus-linux-user In an optimized memory scanning routine the code is doing: ldxa [ %o0 ] #ASI_PNF, %o3 Which is a load from the "no fault" address space. What this means is that even if you are loading from an invalid address, no fault should occur. qemu of course segfaults when the address is invalid. Is there some way to check in linux-user if a virtual memory address is mapped? That way it could be checked before the ldl_raw() is run? hopefully I am not misunderstanding the bug here. Vince