From patchwork Sun Aug 26 14:14:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 180056 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BC75B2C00F6 for ; Mon, 27 Aug 2012 00:14:36 +1000 (EST) Received: from localhost ([::1]:56204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5dbl-0007jB-T7 for incoming@patchwork.ozlabs.org; Sun, 26 Aug 2012 10:14:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5dbd-0007il-GF for qemu-devel@nongnu.org; Sun, 26 Aug 2012 10:14:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5dbc-0000MG-Ck for qemu-devel@nongnu.org; Sun, 26 Aug 2012 10:14:25 -0400 Received: from hall.aurel32.net ([88.191.126.93]:51219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5dbc-0000M9-5F for qemu-devel@nongnu.org; Sun, 26 Aug 2012 10:14:24 -0400 Received: from [2001:470:d4ed:0:5e26:aff:fe2b:6f5b] (helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1T5dbZ-0006sS-Br; Sun, 26 Aug 2012 16:14:21 +0200 Received: from aurel32 by volta.aurel32.net with local (Exim 4.80) (envelope-from ) id 1T5dbX-00044U-OF; Sun, 26 Aug 2012 16:14:19 +0200 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Sun, 26 Aug 2012 16:14:08 +0200 Message-Id: <1345990448-15587-1-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 88.191.126.93 Cc: Blue Swirl , Alexander Graf , Aurelien Jarno , =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PATCH for-1.2] target-ppc: fix altivec instructions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Altivec instructions are not working anymore in PowerPC emulation, following commit d15f74fb, which inverted two registers in the call to helper. Fix that. Cc: Blue Swirl Cc: Alexander Graf Cc: Andreas Färber Signed-off-by: Aurelien Jarno Reviewed-by: Peter Maydell Reviewed-by: Andreas Färber Acked-by: Blue Swirl --- target-ppc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 91eb7a0..ac915cc 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -6530,7 +6530,7 @@ static void glue(gen_, name)(DisasContext *ctx) \ 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, cpu_env, ra, rb); \ + gen_helper_##name(cpu_env, rd, ra, rb); \ tcg_temp_free_ptr(ra); \ tcg_temp_free_ptr(rb); \ tcg_temp_free_ptr(rd); \