From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LC2zz-0002k7-7D for qemu-devel@nongnu.org; Sun, 14 Dec 2008 21:15:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LC2zx-0002j0-Bt for qemu-devel@nongnu.org; Sun, 14 Dec 2008 21:15:54 -0500 Received: from [199.232.76.173] (port=40906 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LC2zx-0002iv-53 for qemu-devel@nongnu.org; Sun, 14 Dec 2008 21:15:53 -0500 Received: from mx20.gnu.org ([199.232.41.8]:31138) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LC2zw-0000ez-UT for qemu-devel@nongnu.org; Sun, 14 Dec 2008 21:15:53 -0500 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LC2zw-0002Ew-1z for qemu-devel@nongnu.org; Sun, 14 Dec 2008 21:15:52 -0500 From: Nathan Froyd Date: Sun, 14 Dec 2008 18:15:01 -0800 Message-Id: <1229307315-16807-29-git-send-email-froydnj@codesourcery.com> In-Reply-To: <1229307315-16807-1-git-send-email-froydnj@codesourcery.com> References: <1229307315-16807-1-git-send-email-froydnj@codesourcery.com> Subject: [Qemu-devel] [PATCH 28/42] target-ppc: add GEN_VXFORM_NOA macro for subsequent instructions. 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 Signed-off-by: Nathan Froyd --- target-ppc/translate.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 4331548..f1c621f 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -6299,6 +6299,21 @@ GEN_VXFORM(vrlw, 132); GEN_VXFORM(vsl, 452); GEN_VXFORM(vsr, 708); +#define GEN_VXFORM_NOA(name, xo) \ + GEN_HANDLER(name, 0x04, (xo >> 1) & 0x1f, (xo >> 6) & 0x1f, 0x001f0000, PPC_ALTIVEC) \ + { \ + TCGv_ptr rb, rd; \ + if (unlikely(!ctx->altivec_enabled)) { \ + gen_exception(ctx, POWERPC_EXCP_VPU); \ + return; \ + } \ + rb = gen_avr_ptr(rB(ctx->opcode)); \ + rd = gen_avr_ptr(rD(ctx->opcode)); \ + gen_helper_##name (rd, rb); \ + tcg_temp_free (rb); \ + tcg_temp_free (rd); \ + } + #define GEN_VXFORM_SIMM(name, xo) \ GEN_HANDLER(name, 0x04, (xo >> 1) & 0x1f, (xo >> 6) & 0x1f, 0x00000000, PPC_ALTIVEC) \ { \ -- 1.6.0.5