qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Attila Csosz <csosz77@gmail.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] debugging qemu arm
Date: Sat, 31 Jan 2015 16:59:25 +0000	[thread overview]
Message-ID: <CAFEAcA8HKKs6tpFyAGOsux8y232fbkqe-svfqtbQDpNDqqav3A@mail.gmail.com> (raw)
In-Reply-To: <CAMYm8FpyOUoctYWV8utc0p5T+PvOrdxCL7Op9U7HawLC+0mFPg@mail.gmail.com>

On 31 January 2015 at 16:50, Attila Csosz <csosz77@gmail.com> wrote:
> Where is the arm-to-x86 call in QEMU code? Which tool/library call generates
> this code?

We generate the code in target-arm/translate.c (actually we generate
a TCG intermediate representation which is subsequently turned into
x86 instructions by the TCG backend in tcg/i386/). The main runtime
loop is in exec.c: when we call tcg_qemu_tb_exec() this is actually
a jump to generated code:
# define tcg_qemu_tb_exec(env, tb_ptr) \
    ((uintptr_t (*)(void *, void *))tcg_ctx.code_gen_prologue)(env, tb_ptr)

-- PMM

  reply	other threads:[~2015-01-31 16:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-31 12:25 [Qemu-devel] debugging qemu arm Attila Csosz
2015-01-31 16:43 ` Peter Maydell
2015-01-31 16:50   ` Attila Csosz
2015-01-31 16:59     ` Peter Maydell [this message]
2015-01-31 17:10       ` Attila Csosz

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=CAFEAcA8HKKs6tpFyAGOsux8y232fbkqe-svfqtbQDpNDqqav3A@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=csosz77@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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 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).