From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYpka-00080e-Lh for qemu-devel@nongnu.org; Thu, 28 Aug 2008 18:13:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYpkZ-00080E-5L for qemu-devel@nongnu.org; Thu, 28 Aug 2008 18:13:56 -0400 Received: from [199.232.76.173] (port=44399 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYpkZ-00080B-1i for qemu-devel@nongnu.org; Thu, 28 Aug 2008 18:13:55 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:37073) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYpkX-0008OS-O4 for qemu-devel@nongnu.org; Thu, 28 Aug 2008 18:13:54 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [5100] SH4: Convert register moves to TCG Date: Thu, 28 Aug 2008 23:13:42 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200808282313.42947.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno On Thursday 28 August 2008, Aurelien Jarno wrote: > +static always_inline void gen_movl_T_rN (TCGv t, int reg) > +{ > + =C2=A0 =C2=A0tcg_gen_st_tl(t, cpu_env, offsetof(CPUState, gregs[reg])); The preferred way of doing this is to have TCG variables for common (possib= ly=20 all?) registers. See e.g. m68k or sparc. Paul