qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [RFC][PATCH] tcg: allocate memory to spill registers on startup
Date: Fri, 10 Apr 2009 16:20:10 +0100	[thread overview]
Message-ID: <200904101620.10589.paul@codesourcery.com> (raw)
In-Reply-To: <20090410145609.GA20999@volta.aurel32.net>

On Friday 10 April 2009, Aurelien Jarno wrote:
> On Fri, Apr 10, 2009 at 03:44:55PM +0100, Paul Brook wrote:
> > On Friday 10 April 2009, Aurelien Jarno wrote:
> > > +    assert(size != TCG_MAX_TEMPS * sizeof(tcg_target_long));
> >
> > Shouldn't this be >= ?
>
> When I wrote that, I thought that the two sizes have to match, 

In that case I think the assert is completely wrong. You're asserting that the 
two values are not equal. IIRC there's bits in the TCG headers that disable 
asserts by default - I've been bitten by this before.

> but you are right, the frame size can actually be bigger.
> Any other comment?

What were you benchmarking? Translation speed or execution speed?
I'd guess that your new code speeds up the translator, but makes the resulting 
code less cache friendly.

Maybe if I see your subsequent optimization it might make more sense, though 
I'm suspicious of tcg-target doing register allocation/spilling itself.

Paul

  reply	other threads:[~2009-04-10 15:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-10  8:54 [Qemu-devel] [RFC][PATCH] tcg: allocate memory to spill registers on startup Aurelien Jarno
2009-04-10 14:44 ` Paul Brook
2009-04-10 14:56   ` Aurelien Jarno
2009-04-10 15:20     ` Paul Brook [this message]
2009-04-10 15:31       ` Aurelien Jarno
2009-04-10 15:52         ` Paul Brook
2009-04-10 16:06           ` Aurelien Jarno

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=200904101620.10589.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=aurelien@aurel32.net \
    --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).