[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [5100] SH4: Convert register moves to TCG

From: Thiemo Seufer
Subject: Re: [Qemu-devel] [5100] SH4: Convert register moves to TCG
Date: Fri, 29 Aug 2008 12:46:03 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Aurelien Jarno wrote:
> 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.

For MIPS I tried to keep thing similiar to dyngen when both TCG and
dyngen were used. Then I converted a few places to use TCG variables
but had no time to finish the job.

> I wonder in which way what your propose is better? It seems easier to write,
> but what about the runtime speed?

TCG variables are (potentially) better.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]