From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T233N-0003lq-VT for qemu-devel@nongnu.org; Thu, 16 Aug 2012 12:36:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T233K-0004rq-UY for qemu-devel@nongnu.org; Thu, 16 Aug 2012 12:36:13 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:57687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T233K-0004rm-Q5 for qemu-devel@nongnu.org; Thu, 16 Aug 2012 12:36:10 -0400 Received: by yenm4 with SMTP id m4so3093169yen.4 for ; Thu, 16 Aug 2012 09:36:10 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120816080243.GA33123@cs.nctu.edu.tw> References: <20120816080243.GA33123@cs.nctu.edu.tw> Date: Thu, 16 Aug 2012 12:36:10 -0400 Message-ID: From: Steven Content-Type: text/plain; charset=Big5 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: =?UTF-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Cc: qemu-devel@nongnu.org On Thu, Aug 16, 2012 at 4:02 AM, =B3=AF=AD=B3=A5=F4 (Wei-Ren Chen) wrote: >> I would like to is there any function that could log the register >> content of the guest machine, like "info registers" in the qemu >> monitor mode. > > Why not check how "info registes" be implemented in QEMU? ;) > I guess you just have to log env->regs or something like that. Thanks for pointing this out. I would like to get a trace of guest memory access. So I can not use "info registers". What I want to do is that when tcg fetches a load instruction at disas_insns(), the guest memory address should be calculated. For example, the tb has an instruction of mov 0x4(%ebx) %eax. To calculate the address of 0x4(%ebx), I need to know the value of %ebx. Is this correct? Thanks. > > Regards, > chenwj > > -- > Wei-Ren Chen (=B3=AF=AD=B3=A5=F4) > 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