From: Stuart Brady <sdb@zubnet.me.uk>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] tcg: Remove redundant declarations of TCG_TARGET_REG_BITS
Date: Thu, 8 Dec 2011 21:46:13 +0000 [thread overview]
Message-ID: <20111208214613.GA30329@zubnet.me.uk> (raw)
In-Reply-To: <4EE06511.4050306@weilnetz.de>
On Thu, Dec 08, 2011 at 08:19:45AM +0100, Stefan Weil wrote:
> Am 08.12.2011 08:03, schrieb 陳韋任:
> >On Wed, Dec 07, 2011 at 11:31:46PM +0100, Stefan Weil wrote:
> >>TCG_TARGET_REG_BITS is declared in tcg.h for all TCG targets.
> >
> >Just want to make sure. When we talk about target in TCG, that
> >_always_ means
> >the host, right?
> >
> >Regards,
> >chenwj
>
> Yes. See file tcg/README which says this:
>
> The TCG "target" is the architecture for which we generate the
> code. It is of course not the same as the "target" of QEMU which is
> the emulated architecture. As TCG started as a generic C backend used
> for cross compiling, it is assumed that the TCG target is different
> from the host, although it is never the case for QEMU.
... although that's no longer quite the case when using TCI, as I'm
sure you're quite well aware! :-)
I suppose when using TCI:
* The host is system that QEMU's running on.
* The TCG target is the TCI bytecode interpreter.
* The QEMU target is whatever you're emulating.
... but of course, the vast majority users do not use TCI (as I think
it's mainly intended for development?), so the description in tcg/README
is correct in most cases.
I suppose it's a bit more complicated than I've described, too, since
the TCI interpreter might behave differently depending on the host that
you're running on... e.g. TCI will use the same endianness as the host.
I'm not sure if it would be worth updating tcg/README along these lines,
but the distinction between TCI and the host seems a little murky...
Cheers,
--
Stuart
next prev parent reply other threads:[~2011-12-08 21:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-07 22:31 [Qemu-devel] [PATCH] tcg: Remove redundant declarations of TCG_TARGET_REG_BITS Stefan Weil
2011-12-08 7:03 ` 陳韋任
2011-12-08 7:19 ` Stefan Weil
2011-12-08 21:46 ` Stuart Brady [this message]
2011-12-09 10:58 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
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=20111208214613.GA30329@zubnet.me.uk \
--to=sdb@zubnet.me.uk \
--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).