qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] What is cpu_A0 in target-i386/translate.c
@ 2012-08-15  6:33 Steven
  2012-08-15 10:24 ` Andreas Färber
  0 siblings, 1 reply; 2+ messages in thread
From: Steven @ 2012-08-15  6:33 UTC (permalink / raw)
  To: qemu-devel

Hi,
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

static inline void gen_op_ld_v(int idx, TCGv t0, TCGv a0)
{
     int mem_index = (idx >> 2) - 1;
+    qemu_log("cpu_A0: %llu\n", a0.i64);
     switch(idx & 3) {
     case 0:
         tcg_gen_qemu_ld8u(t0, a0, mem_index);
}

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? Thanks.

steven

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-15 10:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15  6:33 [Qemu-devel] What is cpu_A0 in target-i386/translate.c Steven
2012-08-15 10:24 ` Andreas Färber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).