Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NyuU2-0004wz-R3 for qemu-devel@nongnu.org; Mon, 05 Apr 2010 18:09:26 -0400 Received: from [140.186.70.92] (port=59249 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyuU0-0004sj-1T for qemu-devel@nongnu.org; Mon, 05 Apr 2010 18:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NyuTy-0003tA-Ht for qemu-devel@nongnu.org; Mon, 05 Apr 2010 18:09:23 -0400 Received: from web43140.mail.sp1.yahoo.com ([216.252.121.70]:34557) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NyuTx-0003sw-MB for qemu-devel@nongnu.org; Mon, 05 Apr 2010 18:09:22 -0400 Message-ID: <639622.90232.qm@web43140.mail.sp1.yahoo.com> Date: Mon, 5 Apr 2010 15:09:19 -0700 (PDT) From: =?iso-8859-1?Q?Boris_C=E1mara?= MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1051222551-1270505359=:90232" Subject: [Qemu-devel] full dynamic instruction trace for MIPS target List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0-1051222551-1270505359=:90232 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0AHi,=0A=0AI think the correct way to get the full instruction trace on= a MIPS emulated processor is:=0A=0A-Disabling the tb cache: I did this by= modifying the tb_find_slow() and tb_find_fast() functions to ever go to "n= ot_found" label where the code is translated with no cache searches.=0A=0A= =0A-Loggin the PC and the instruction: I created a qemu_log() function clon= e and call it just before executing decode_opc() on target-mips/translate.c= =0A=0APlease, can any one tell me if it is correct or if I am missing some= thing?=0AI made some tests using this method but it is very very slow. Is = there a more efficient way to obtain the full instruction trace for a MIPS = target processor emulated on qemu?=0A=0Athanks,=0A=0A=0A _____________= _______________________________________________________________________=0AV= eja quais s=E3o os assuntos do momento no Yahoo! +Buscados=0Ahttp://br.mais= buscados.yahoo.com --0-1051222551-1270505359=:90232 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
=0A=0A =0A =0A =0A =0A =0A =0A =0A =0A =0A
= =0A

=0A

Hi,

=0A

=0A


I think the correct way to get the = full instruction trace on a MIPS emulated processor is:

=0A

=0A


-Disabling the tb cache: I &nbs= p;did this by modifying the tb_find_slow() and tb_find_fast() function= s to ever go to "not_found" label where the code is translated with no cach= e searches.

=0A

=

=0A

<= br>

-Loggin the PC and the instruction: I created a qemu_log() function clon= e and call it just before executing decode_opc() on target-mips/translate.c=

=0A

=0A


<= p dir=3D"ltr" style=3D"text-align: left;">Please, can any one  tell me if it is correct or if I = am missing something?

=0A

=0A

I  made some tests using this method but it is very very slo= w. Is there a more efficient way to obtain the full instruction trace for a= MIPS target processor emulated on qemu?

=0A

=0A


thanks,

=0A
=0A
=0A
=0A=0A=0A
Veja quais s=E3o os assuntos do momento no= Yahoo! + Buscados: Top 10 - C= elebridades - M=FAsica - Esportes --0-1051222551-1270505359=:90232--