Received: from eggs.gnu.org ([140.186.70.92]:57394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8lAq-0008DX-OB for qemu-devel@nongnu.org; Tue, 27 Sep 2011 23:51:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8lAp-0008VD-BV for qemu-devel@nongnu.org; Tue, 27 Sep 2011 23:51:08 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:32344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8lAo-0008V8-K8 for qemu-devel@nongnu.org; Tue, 27 Sep 2011 23:51:07 -0400 Date: Wed, 28 Sep 2011 11:51:02 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7?= Message-ID: <20110928035102.GA64408@cs.nctu.edu.tw> References: <20110927041528.GA74070@cs.nctu.edu.tw> <4E81760F.809@web.de> <20110927110236.GA98616@cs.nctu.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] When the tlb_fill will be called from generated code? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Filippov Cc: Jan Kiszka , qemu-devel@nongnu.org, =?utf-8?B?6Zmz6Z+L5Lu7?= > > I am not sure when/where __stl_mmu/__ldl_mmu are used. I do set >=20 > They are called from the places in TBs where > tcg_gen_qemu_{ld,st}{8,16,32,64}{u,s} were injected. So you mean __stl_mmu/__ldl_mmu are called from the code cache. =20 > > breakpoint on __stl_mmu/__ldl_mmu, but the backtrace can only show > > something like, > > > > #0 =E9=8D=AE_stl_mmu (addr=3D196608, val=3D0, mmu_idx=3D0) at /tmp/ch= enwj/temp/qemu-0.13.0/softmmu_template.h:228 > > #1 ?0x00000000400028e1 in ?? () > > #2 ?0x00000000000000b4 in ?? () > > #3 ?0xecc68ff412fa4137 in ?? () > > #4 ?0x0000000000000000 in ?? () Does those ?? mean since we are in the code cache, so GDB cannot show their backtarce? > > When retaddr =3D=3D NULL, then the calling sequence of tlb_fill is, > > > > =E6=85=AFb_find_slow -> get_page_addr_code -> ldub_code -> __ldb_cmmu > > > > I can only guest the b in __ldb_cmmu means load byte, but I can't > > figure out what's the difference between _cmmu and _mmu. Could you > > give me some hint? Thanks! >=20 > _cmmu is used to access code, _mmu is for data. I see. Thanks, and I find building QEMU with --extra-cflags=3D"-save-te= mps" is really help. Those *.i files make things much clear. Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667