Skip to contentSkip to conversation

target-ppc: Fix build with --enable-debug

PATCH In review Stefan Weil 2 participants 2 messages Jun 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-ppc: Fix build with --enable-debug

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

---

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(-)
target-ppc/translate.c +1 -1
index 73ee74b..91eb7a0 100644
@@ -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 */
 }
Signature · 1 line
1.7.10
#1 lore raw
Quoted 1 line · Stefan Weil

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

Confirmed, a bug with
d0f1562d6ace0fdb7d2db190dd5a9a2e7492c3b3

Quoted 32 lines

---

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(-)
target-ppc/translate.c +1 -2
index 73ee74b..91eb7a0 100644
@@ -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