Received: from eggs.gnu.org ([208.118.235.92]:52028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SinQM-0001ua-4d for qemu-devel@nongnu.org; Sun, 24 Jun 2012 10:04:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SinQK-00047S-FF for qemu-devel@nongnu.org; Sun, 24 Jun 2012 10:04:21 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:48762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SinQK-00047O-8q for qemu-devel@nongnu.org; Sun, 24 Jun 2012 10:04:20 -0400 From: Stefan Weil Date: Sun, 24 Jun 2012 16:04:17 +0200 Message-Id: <1340546657-12747-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] target-ppc: Fix build with --enable-debug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Stefan Weil , qemu-devel@nongnu.org, Alexander Graf The order of the arguments was wrong (copy+paste error). Signed-off-by: Stefan Weil --- Hi Alex, hi Blue, there is still one more bug for target-ppc with --enable-debug, so strictly speaking, the subject is not correct: the patch fixes the build only partially. Regards, Stefan 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 73ee74b..91eb7a0 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -5794,7 +5794,7 @@ static void gen_mtdcrux(DisasContext *ctx) { /* NIP cannot be restored if the memory exception comes from an helper */ gen_update_nip(ctx, ctx->nip - 4); - gen_helper_store_dcr(cpu_gpr[rA(ctx->opcode)], cpu_env, + gen_helper_store_dcr(cpu_env, cpu_gpr[rA(ctx->opcode)], cpu_gpr[rS(ctx->opcode)]); /* Note: Rc update flag set leads to undefined state of Rc0 */ } -- 1.7.10