All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Steven <wangwangkang@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] What is cpu_A0 in target-i386/translate.c
Date: Wed, 15 Aug 2012 12:24:13 +0200	[thread overview]
Message-ID: <502B78CD.60501@suse.de> (raw)
In-Reply-To: <CAMTrTqWyYO42gZ=UFVNojgXLe-2fONAvOaEUjAKZNYEV0HKDNA@mail.gmail.com>

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

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

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

      reply	other threads:[~2012-08-15 10:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=502B78CD.60501@suse.de \
    --to=afaerber@suse.de \
    --cc=qemu-devel@nongnu.org \
    --cc=wangwangkang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.