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:52:31 +0100	[thread overview]
Message-ID: <200904101652.31884.paul@codesourcery.com> (raw)
In-Reply-To: <49DF664E.2080607@aurel32.net>

> I am trying to fix the following comment from Fabrice (tcg.c)
>
> /* XXX: for load/store we could do that only for the slow path
>    (i.e. when a memory callback is called) */
>
> The idea is not to do register allocation/spilling in tcg-target.c, but
> to save registers containing TCG globals to memory in the slow path only
> and without touching the TCGTemp structure. That's why it has to be done
> in tcg-target.c

Hmm, you don't actually have to allocate a slot, just you need to stash the 
values somewhere while you're making the slow call, then restore them 
afterwards. The bits that do need writing back to home locations (i.e. 
visible guest cpu state) already have memory locations.

Paul

  reply	other threads:[~2009-04-10 15:52 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
2009-04-10 15:31       ` Aurelien Jarno
2009-04-10 15:52         ` Paul Brook [this message]
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=200904101652.31884.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).