qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] target-ppc: Fix build with --enable-debug


From: Stefan Weil
Subject: [Qemu-devel] [PATCH] target-ppc: Fix build with --enable-debug
Date: Sun, 24 Jun 2012 16:04:17 +0200

The order of the arguments was wrong (copy+paste error).

Signed-off-by: Stefan Weil <address@hidden>
---

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]