From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8Rks-0005nc-9G for qemu-devel@nongnu.org; Tue, 27 Sep 2011 03:07:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8Rkr-0007XM-Av for qemu-devel@nongnu.org; Tue, 27 Sep 2011 03:07:02 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:54822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8Rkr-0007XB-4q for qemu-devel@nongnu.org; Tue, 27 Sep 2011 03:07:01 -0400 Message-ID: <4E81760F.809@web.de> Date: Tue, 27 Sep 2011 09:06:55 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <20110927041528.GA74070@cs.nctu.edu.tw> In-Reply-To: <20110927041528.GA74070@cs.nctu.edu.tw> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigAF3D5707176DA425E9563739" Sender: jan.kiszka@web.de 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: =?UTF-8?B?6Zmz6Z+L5Lu7?= Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAF3D5707176DA425E9563739 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2011-09-27 06:15, =E9=99=B3=E9=9F=8B=E4=BB=BB wrote: > Hi, all >=20 > The comment above tlb_fill says: >=20 > /* try to fill the TLB and return an exception if error. If retaddr= is > NULL, it means that the function was called in C code (i.e. not > from generated code or from helper.c) */ >=20 > I see tlb_fill only be called from softmmu_template.h (i.e., C code). I= > am wondering when/where the tlb_fill is called from generated code (cod= e > cache) or from helper.c. >=20 You can find the answer yourself: Load qemu into gdb, set a breakpoint on that function and let it run. If you want to catch only the retaddr =3D=3D NULL case, make the breakpoint conditional. Jan --------------enigAF3D5707176DA425E9563739 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6Bdg8ACgkQitSsb3rl5xSmHQCgjZopRBw6c67uCgDaD+oCY4qs yW0AnjYnN6FNeIxZPcTYAl+Ehkfx5zJ8 =pN9v -----END PGP SIGNATURE----- --------------enigAF3D5707176DA425E9563739--