qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Rajat Goyal <rajat.goyal.90@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Get only TCG code without execution
Date: Mon, 16 Jan 2012 08:41:22 +0000	[thread overview]
Message-ID: <20120116084122.GB2729@stefanha-thinkpad.localdomain> (raw)
In-Reply-To: <CAOSa+CtoL=_dLTaC-9taKxA6oaxCFFpAebphW8s19SA=HbhmQg@mail.gmail.com>

On Sun, Jan 15, 2012 at 11:09:18PM +0000, Rajat Goyal wrote:
> I am doing a project to build a daemonic ARM emulator using QEMU. One of
> the requirements is to get the complete TCG code for any multi-threaded ARM
> program that I run on QEMU. I do not need QEMU to execute the program and
> show me the output. Just the entire TCG code. The latest version of
> qemu-arm seems to break while running pthread parallel ARM binaries, ie,
> qemu-arm terminates without completing execution and hence, the entire TCG
> code cannot be captured in the log. Is there a way by which I can get the
> complete TCG code for pthread parallel binaries in exchange for not making
> QEMU execute the binary?

QEMU is a dynamic binary translator.  You don't know the next block
without executing the current block.  It's not possible to translate a
whole program without executing it - remember it can load shared
libraries, use self-modifying code, or just employ indirect jumps which
you cannot analyze statically.

In the general case it's not possible.  Can you explain why you're
trying to do this?

Stefan

  parent reply	other threads:[~2012-01-16  9:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-15 23:09 [Qemu-devel] Get only TCG code without execution Rajat Goyal
2012-01-16  5:32 ` Mulyadi Santosa
2012-01-16  8:41 ` Stefan Hajnoczi [this message]
2012-01-16 12:23   ` Rajat Goyal
2012-01-16 12:29     ` Peter Maydell
2012-01-17  1:04       ` 陳韋任
2012-01-17  8:33         ` Peter Maydell
2012-01-19 16:00           ` Rajat Goyal
2012-01-19 16:15             ` Peter Maydell
2012-01-20  6:38               ` 陳韋任
2012-01-21  0:21                 ` Jamie Lokier
2012-02-02 19:35                   ` Rajat Goyal
2012-01-20  6:12             ` 陳韋任
2012-01-20  9:09               ` Peter Maydell
2012-01-20  9:44                 ` 陳韋任
2012-01-20 10:46                   ` Peter Maydell
2012-01-20 19:40                     ` Jamie Lokier
2012-02-06  7:25                       ` 陳韋任
2012-02-10  3:08                         ` Jamie Lokier

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=20120116084122.GB2729@stefanha-thinkpad.localdomain \
    --to=stefanha@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rajat.goyal.90@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 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).