From: Rob Landley <rob@landley.net>
To: Paul Brook <paul@codesourcery.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu vs gcc4
Date: Wed, 1 Nov 2006 11:34:23 -0500 [thread overview]
Message-ID: <200611011134.23937.rob@landley.net> (raw)
In-Reply-To: <200611010322.09885.paul@codesourcery.com>
On Tuesday 31 October 2006 10:22 pm, Paul Brook wrote:
> > > and glue them together like we do with dyngen. However once you've done
> > > that you've implemented most of what's needed for fully dynamic qops, so
> > > it doesn't really seem worth it.
> >
> > I missed a curve. What's "fully dynamic qops"? (There's no translation
> > cache?)
>
> I mean all the qop stuff I've implemented.
Still lost. Where does the "fully dynamic" part come in?
> > Any idea where I can get a toolchain that can output a "hello world"
> > program for m68k nommu? (Or perhaps you have a statically linked "hello
> > world" program for the platform lying around?)
>
> Funnily enough I do :-)
> http://www.codesourcery.com/gnu_toolchains/coldfire/
Woot.
This download page was designed by your company's legal department, I take it?
(There's no such thing as GNU/Linux, and you don't have to accept the GPL
because it's based on copyright law, not contract law, so "informed consent"
is not the basis for enforcement.)
> > > Theoretically possible, but not so easy in practice. Especially when you
> > > get things like partial flag clobbers, and lazy flag evaluation. Doing
it
> > > as a target specific hack is much simpler and quicker.
> >
> > I think I know what partial flag clobbers are (although if you're working
> > your way back, in theory you could handle it with a mask of exposed bits),
> > but what's lazy flag evaulation? (I thought that was the point of
> > eliminating the unused flag setting. Are you saying the hardware also
does
> > this and we have to emulate that?)
>
> Lazy flag evaluation is where you don't bother calculating the actual flags
> when executing the flag-setting instruction. Instead you save the
> operands/result and compute the flags when you actually need them.
Such as when the computation's in a loop but you only test after exiting the
loop for other reasons? I'd have to see examples to figure out how it would
make sense to optimize that...
> > The exponential complexity is if you have to write different code for each
> > combination of host and target. If every target disassembles to the same
> > set of target QOPs, then you could have a hand-written assembly version of
> > each QOP for each host platform, and still have N rather than N^2 of them.
>
> Right, but by the time you've got everything to use the same set of ops you
> may as well teach qemu how to generate code instead of using potted
> fragments.
I'm thinking of "here's the code for performing this QOP on this processor".
I'm not sure what distinction you're making.
> Using hand-written assembly fragments probably doesn't make qemu any faster,
> it just removes the gcc dependency.
Which seems like a good thing to me. (Or at least the gcc _version_
dependency.)
> Using qops also allows qemu to generate better (faster) translated code.
Currently, I'm interested in building qemu under compiler versions I actually
have installed, without having to apply patches that the patch authors
consider too disgusting to integrate.
> Paul
Rob
--
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery
next prev parent reply other threads:[~2006-11-01 16:34 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-20 18:53 [Qemu-devel] qemu vs gcc4 K. Richard Pixley
2006-10-22 22:06 ` Johannes Schindelin
2006-10-23 8:16 ` Martin Guy
2006-10-23 12:20 ` Paul Brook
2006-10-23 13:59 ` Avi Kivity
2006-10-23 14:10 ` Paul Brook
2006-10-23 14:28 ` Avi Kivity
2006-10-23 14:31 ` Paul Brook
2006-10-23 14:35 ` Avi Kivity
2006-10-23 17:41 ` K. Richard Pixley
2006-10-23 17:58 ` Paul Brook
2006-10-23 18:04 ` K. Richard Pixley
2006-10-23 18:20 ` Laurent Desnogues
2006-10-23 18:37 ` Paul Brook
2006-10-24 23:39 ` Rob Landley
2006-10-25 0:24 ` Paul Brook
2006-10-25 19:39 ` Rob Landley
2006-10-26 18:09 ` Daniel Jacobowitz
2006-10-31 16:53 ` Rob Landley
2006-10-31 19:02 ` Paul Brook
2006-10-31 20:41 ` Rob Landley
2006-10-31 22:08 ` Paul Brook
2006-10-31 22:31 ` Laurent Desnogues
2006-10-31 23:00 ` Paul Brook
2006-11-01 0:00 ` Rob Landley
2006-11-01 0:29 ` Paul Brook
2006-11-01 1:51 ` Rob Landley
2006-11-01 3:22 ` Paul Brook
2006-11-01 16:34 ` Rob Landley [this message]
2006-11-01 17:01 ` Paul Brook
2006-10-31 23:17 ` Rob Landley
2006-11-01 0:01 ` Paul Brook
2006-10-30 4:35 ` Rob Landley
2006-10-30 14:56 ` Paul Brook
2006-10-30 16:31 ` Rob Landley
2006-10-30 16:50 ` Paul Brook
2006-10-30 22:54 ` Stephen Torri
2006-10-30 23:13 ` Paul Brook
2006-10-23 1:27 ` Rob Landley
2006-10-23 1:44 ` Paul Brook
2006-10-23 1:45 ` Johannes Schindelin
2006-10-23 17:53 ` K. Richard Pixley
2006-10-23 18:08 ` Rob Landley
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=200611011134.23937.rob@landley.net \
--to=rob@landley.net \
--cc=paul@codesourcery.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).