From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2Jlq-0001ER-RJ for qemu-devel@nongnu.org; Fri, 17 Aug 2012 06:27:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2Jlm-0008B7-Lq for qemu-devel@nongnu.org; Fri, 17 Aug 2012 06:27:14 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:11763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2Jlm-0008A8-5A for qemu-devel@nongnu.org; Fri, 17 Aug 2012 06:27:10 -0400 Date: Fri, 17 Aug 2012 18:26:59 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20120817102659.GA67669@cs.nctu.edu.tw> References: <20120816080243.GA33123@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] qemu log function to print out the registers of the guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Steven Cc: Peter Maydell , qemu-devel@nongnu.org, =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= > To verify what is translation time and what is the run time, I log the > register information before disassembling each guest code. I copied > some results from the log file, which is generated at run time of a > guest machine. >=20 > EAX=3D00000000 EBX=3D00006ffc > IN: > 0x00000000000f2087: mov $0xf5588,%eax >=20 > EAX=3D000f5588 EBX=3D00006ffc > IN: > 0x00000000000f208B: move 0x4(%ebx) %eax >=20 > The first instruction load eax with the value 0xf5588, so the eax at > the second instruction is EAX=3D000f5588. So can I consider the memory > address of 0x4(%ebx) as (00006ffc + 4)? I think this should be the > run time information I need. Please correct me if there is anything > wrong. Thanks. IIRC, "-d in_asm" only give you what has been translated not executed. Remember you said you log the register information before disassembling each guest code? In other words, (guest) ebx might not be the value you saw here. This is just my opinion. 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 Homepage: http://people.cs.nctu.edu.tw/~chenwj