From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [5100] SH4: Convert register moves to TCG
Date: Fri, 29 Aug 2008 01:23:53 +0200 [thread overview]
Message-ID: <20080828232353.GA10605@volta.aurel32.net> (raw)
In-Reply-To: <200808282313.42947.paul@codesourcery.com>
On Thu, Aug 28, 2008 at 11:13:42PM +0100, Paul Brook wrote:
> On Thursday 28 August 2008, Aurelien Jarno wrote:
> > +static always_inline void gen_movl_T_rN (TCGv t, int reg)
> > +{
> > + tcg_gen_st_tl(t, cpu_env, offsetof(CPUState, gregs[reg]));
>
> The preferred way of doing this is to have TCG variables for common (possibly
> all?) registers. See e.g. m68k or sparc.
>
Until now I have used MIPS as an example, it copies CPU registers to TCG
variables. As you pointed, m68k and sparc use direct access to CPU
registers through TCG variables.
I wonder in which way what your propose is better? It seems easier to write,
but what about the runtime speed?
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
next prev parent reply other threads:[~2008-08-28 23:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-28 21:02 [Qemu-devel] [5100] SH4: Convert register moves to TCG Aurelien Jarno
2008-08-28 22:13 ` Paul Brook
2008-08-28 23:23 ` Aurelien Jarno [this message]
2008-08-29 0:12 ` Paul Brook
2008-08-29 10:46 ` Thiemo Seufer
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=20080828232353.GA10605@volta.aurel32.net \
--to=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.