qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: ByteRage <byterage@yahoo.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu dynamic translation (system design) question
Date: Thu, 24 Aug 2006 10:52:06 -0700 (PDT)	[thread overview]
Message-ID: <20060824175206.29882.qmail@web33404.mail.mud.yahoo.com> (raw)
In-Reply-To: <3ed52ec0608190200y7627bdeeib8ba9c8c3d7e5c66@mail.gmail.com>

--- "S.P.T.Krishnan" <sptkrishnan@gmail.com> wrote:

> a. How does qemu slice the guest binary into blocks
> ? any rational or rule of thumb here ?

As far as I understand the source code, the end of
every translated block is at a control transfer
instruction or when a maximum translation block length
has been reached. You can grep for "gen_eob" in the
translate.c source code of any particular target (fe
i386/translate.c) to see the points at which an end of
block is generated and the blocks are sliced. It may
also be helpful to let qemu write the input & output
asm code of translated blocks to a log file (qemu -d
in_asm, out_asm) for better understanding how it works
under the hood, by watching how the blocks are being
generated/sliced on the fly.

cheers,

Joachim De Zutter

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

  reply	other threads:[~2006-08-24 17:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-19  9:00 [Qemu-devel] qemu dynamic translation (system design) question S.P.T.Krishnan
2006-08-24 17:52 ` ByteRage [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-19  9:37 Laurent DESNOGUES
2006-08-20 15:23 ` S.P.T.Krishnan

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=20060824175206.29882.qmail@web33404.mail.mud.yahoo.com \
    --to=byterage@yahoo.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).