From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZojC-0003Ki-PB for qemu-devel@nongnu.org; Wed, 18 Feb 2009 10:52:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZojB-0003KW-Ch for qemu-devel@nongnu.org; Wed, 18 Feb 2009 10:52:50 -0500 Received: from [199.232.76.173] (port=41712 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZojB-0003KT-A7 for qemu-devel@nongnu.org; Wed, 18 Feb 2009 10:52:49 -0500 Received: from fg-out-1718.google.com ([72.14.220.154]:45668) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZojA-0007T9-G9 for qemu-devel@nongnu.org; Wed, 18 Feb 2009 10:52:49 -0500 Received: by fg-out-1718.google.com with SMTP id e21so843260fga.8 for ; Wed, 18 Feb 2009 07:52:47 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <499C2BEF.6010107@gmail.com> References: <499C03A9.6040003@gmail.com> <761ea48b0902180500wbe676d4x3895d37df10e495b@mail.gmail.com> <499C0A81.8090106@gmail.com> <761ea48b0902180526q1be52725x748c7c14b5d907de@mail.gmail.com> <499C2BEF.6010107@gmail.com> Date: Wed, 18 Feb 2009 16:52:47 +0100 Message-ID: <761ea48b0902180752p2e665a07vbb922fb6621a7173@mail.gmail.com> Subject: Re: [Qemu-devel] Monitor Memory Accesses From: Laurent Desnogues Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 On Wed, Feb 18, 2009 at 4:40 PM, Andrea Pellegrini wrote: > In the file linux-user/mmap.c, which is the difference between the two > following lines? Does the first one provide the virtual address while the > second one is already translated in the real address? > > p = mmap(g2h(mmap_start), > host_len, prot, flags | MAP_FIXED, fd, host_offset); > > p = mmap(real_start ? g2h(real_start) : NULL, > host_len, prot, flags, fd, host_offset); > > I'm just starting to work on tracking the load/store. :-) I don't think you have to care about that. You want to print the addresses your guest accesses (which are virtual since you're running linux user mode, IIUC). As I don't know anything about 0.9.1, all I can recommend is again to look at what Vincent did; in particular this: http://www.csl.cornell.edu/~vince/projects/qemu-trace/qemu-mips-dinero.patch Laurent