From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3Csd-0004lB-OU for qemu-devel@nongnu.org; Thu, 01 Mar 2012 15:45:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3CsO-0005A8-3T for qemu-devel@nongnu.org; Thu, 01 Mar 2012 15:45:39 -0500 Received: from mail-vx0-f173.google.com ([209.85.220.173]:33237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3CsN-00059y-Si for qemu-devel@nongnu.org; Thu, 01 Mar 2012 15:45:24 -0500 Received: by vcbfl10 with SMTP id fl10so1021375vcb.4 for ; Thu, 01 Mar 2012 12:45:21 -0800 (PST) MIME-Version: 1.0 From: =?ISO-8859-1?Q?Jo=E3o_Corr=EAa?= Date: Thu, 1 Mar 2012 17:45:01 -0300 Message-ID: Content-Type: multipart/alternative; boundary=20cf3079b95ee1156504ba348981 Subject: [Qemu-devel] Doubts about qemu tcg/tci List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --20cf3079b95ee1156504ba348981 Content-Type: text/plain; charset=ISO-8859-1 Hi, Hopefully I'm sending this e-mail to the right list. If not, please ignore it! I'm trying to read the asm code generated with the -D qemu option, but I am having some difficulties. First, I've seen that the generated asm is allocated in different address ranges. The beginning of the dump says: end_code 0x080486dc start_code 0x08048000 but the first instruction's address is: 0x6022caf0 Am I misunderstanding something? How exactly this reallocation happens (or where in the source code am I able to track and understand the process)? Second, what exactly means the identifying letters of arguments counted in front of each instruction (i, o, c) ? Is it too hard to create a patch on the disassembly function to also output its values? Third, Is there a trivial way for me to track an original function inside the generated asm dump? I mean, if I create a C function called foo(), that is called somewhere inside the main function, what should I do in order to find the translated instructions inside the outputted dump? Finally, I've been trying to find material about how this translation works properly, but I've been unable to find much. Is there something I should be reading before asking around here? If yes, please, point me to it! Thank you for your time. Any help with any question will be very useful to me. --20cf3079b95ee1156504ba348981 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

Hopefully I'm sen= ding this e-mail to the right list. If not, please ignore it!

I'm trying to read the asm code generated with = the -D qemu option, but I am having some difficulties.

First, I've seen that the generated asm= is allocated in different address ranges. The beginning of the dump says:<= /div>

end_code =A0 =A00x080486dc =A0
start_code =A00x08048000

bu= t the first instruction's address is:=A00x6022caf0

=
Am I misunderstanding something? How exactly this realloca= tion happens (or where in the source code am I able to track and understand= the process)?=A0

Second, what exactly means the identifying = letters of arguments counted in front of each instruction (i, o, c) ? Is it= too hard to create a patch on the disassembly function to also output its = values?

Third, Is there a trivial way for me to tra= ck an original function inside the generated asm dump? I mean, if I create = a C function called foo(), that is called somewhere inside the main functio= n, what should I do in order to find the translated instructions inside the= outputted dump?

Finally, I've been trying to find mater= ial about how this translation works properly, but I've been unable to = find much. Is there something I should be reading before asking around here= ? If yes, please, point me to it!

Thank you for your time. Any help with any = question will be very useful to me.
--20cf3079b95ee1156504ba348981--