From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1alu-0002t1-2o for qemu-devel@nongnu.org; Wed, 15 Aug 2012 06:24:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1als-0005h5-FV for qemu-devel@nongnu.org; Wed, 15 Aug 2012 06:24:18 -0400 Received: from cantor2.suse.de ([195.135.220.15]:39673 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1als-0005gz-8j for qemu-devel@nongnu.org; Wed, 15 Aug 2012 06:24:16 -0400 Message-ID: <502B78CD.60501@suse.de> Date: Wed, 15 Aug 2012 12:24:13 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] What is cpu_A0 in target-i386/translate.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Steven Cc: qemu-devel@nongnu.org Hi, Am 15.08.2012 08:33, schrieb Steven: > I would like to trace the guest physical address of the load > instructions from the guest. I thought the cpu_A0 is the memory > address to be accessed. However, when I print out the value of cpu_A0, > like >=20 > static inline void gen_op_ld_v(int idx, TCGv t0, TCGv a0) > { > int mem_index =3D (idx >> 2) - 1; > + qemu_log("cpu_A0: %llu\n", a0.i64); > switch(idx & 3) { > case 0: > tcg_gen_qemu_ld8u(t0, a0, mem_index); > } >=20 > I saw the value of cpu_A0 is always 23 (in decimal). Is there anything > about this? Or does cpu_A0 have a different meaning? A TCGv is the identifier of a TCG variable at translation time, which in turn at runtime (in a register or memory) contains the value. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg