From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJ6cL-0004up-UT for qemu-devel@nongnu.org; Sat, 03 Jan 2009 08:32:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJ6cK-0004uZ-Qm for qemu-devel@nongnu.org; Sat, 03 Jan 2009 08:32:40 -0500 Received: from [199.232.76.173] (port=42228 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJ6cK-0004uW-G8 for qemu-devel@nongnu.org; Sat, 03 Jan 2009 08:32:40 -0500 Received: from hall.aurel32.net ([88.191.82.174]:49568) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LJ6cK-0007Mv-08 for qemu-devel@nongnu.org; Sat, 03 Jan 2009 08:32:40 -0500 Date: Sat, 3 Jan 2009 14:32:38 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH 03/40] Add GEN_VXFORM macro for subsequent instructions. Message-ID: <20090103133238.GF8871@hall.aurel32.net> References: <1230693022-18380-1-git-send-email-froydnj@codesourcery.com> <1230693022-18380-4-git-send-email-froydnj@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1230693022-18380-4-git-send-email-froydnj@codesourcery.com> Sender: Aurelien Jarno Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nathan Froyd Cc: qemu-devel@nongnu.org On Tue, Dec 30, 2008 at 07:09:45PM -0800, Nathan Froyd wrote: > > Signed-off-by: Nathan Froyd > --- > target-ppc/translate.c | 17 +++++++++++++++++ > 1 files changed, 17 insertions(+), 0 deletions(-) Thanks, applied. > diff --git a/target-ppc/translate.c b/target-ppc/translate.c > index 7ba9c26..4ae780b 100644 > --- a/target-ppc/translate.c > +++ b/target-ppc/translate.c > @@ -6164,6 +6164,23 @@ GEN_VX_LOGICAL(vor, tcg_gen_or_i64, 2, 18); > GEN_VX_LOGICAL(vxor, tcg_gen_xor_i64, 2, 19); > GEN_VX_LOGICAL(vnor, tcg_gen_nor_i64, 2, 20); > > +#define GEN_VXFORM(name, opc2, opc3) \ > +GEN_HANDLER(name, 0x04, opc2, opc3, 0x00000000, PPC_ALTIVEC) \ > +{ \ > + TCGv_ptr ra, rb, rd; \ > + if (unlikely(!ctx->altivec_enabled)) { \ > + gen_exception(ctx, POWERPC_EXCP_VPU); \ > + return; \ > + } \ > + ra = gen_avr_ptr(rA(ctx->opcode)); \ > + rb = gen_avr_ptr(rB(ctx->opcode)); \ > + rd = gen_avr_ptr(rD(ctx->opcode)); \ > + gen_helper_##name (rd, ra, rb); \ > + tcg_temp_free_ptr(ra); \ > + tcg_temp_free_ptr(rb); \ > + tcg_temp_free_ptr(rd); \ > +} > + > /*** SPE extension ***/ > /* Register moves */ > > -- > 1.6.0.5 > > > > -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net