Skip to contentSkip to conversation

ppc patch queue 2012-06-24

GIT PULL New Alexander Graf 2 participants 4 messages Jun 24, 2012

lore
Share & tools
lore
#0 lore raw

Hi Blue / Aurelien,

This is a quick fix patch queue for ppc when using. Thanks a lot to Stefan for finding the issues!

Please pull.

Alex

The following changes since commit 3c01ae0ea29915d165c384d0bd1cbafcf4364a4d:
Scott Wood (1):
tci: don't write zero for reloc in tci_out_label

are available in the git repository at:

git://repo.or.cz/qemu/agraf.git ppc-for-upstream

Stefan Weil (2):
target-ppc: Fix build with --enable-debug
target-ppc: Fix 2nd parameter for tcg_gen_shri_tl

 target-ppc/translate.c      |    2 +-
 target-ppc/translate_init.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
#1 lore raw

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

From: Stefan Weil <[email protected]>

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

---
 target-ppc/translate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
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.6.0.2
#2 lore raw

PATCH 2/2 target-ppc: Fix 2nd parameter for tcg_gen_shri_tl

In reply to Alexander Graf

From: Stefan Weil <[email protected]>

This fixes a compiler error when QEMU was configured with --enable-debug.

---
 target-ppc/translate_init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
target-ppc/translate_init.c +1 -1
index e6580ff..5742229 100644
@@ -4475,7 +4475,7 @@ static void spr_write_mas73(void *opaque, int sprn, int gprn)
     TCGv val = tcg_temp_new();
     tcg_gen_ext32u_tl(val, cpu_gpr[gprn]);
     gen_store_spr(SPR_BOOKE_MAS3, val);
-    tcg_gen_shri_tl(val, gprn, 32);
+    tcg_gen_shri_tl(val, cpu_gpr[gprn], 32);
     gen_store_spr(SPR_BOOKE_MAS7, val);
     tcg_temp_free(val);
 }
Signature · 1 line
1.6.0.2
#3 lore raw
In reply to Alexander Graf
Quoted 6 lines · Alexander Graf

Hi Blue / Aurelien,

This is a quick fix patch queue for ppc when using. Thanks a lot to Stefan for finding the issues!

Please pull.

Thanks, pulled.

Quoted 19 lines

Alex

The following changes since commit 3c01ae0ea29915d165c384d0bd1cbafcf4364a4d:
 Scott Wood (1):
       tci: don't write zero for reloc in tci_out_label

are available in the git repository at:

 git://repo.or.cz/qemu/agraf.git ppc-for-upstream

Stefan Weil (2):
     target-ppc: Fix build with --enable-debug
     target-ppc: Fix 2nd parameter for tcg_gen_shri_tl

 target-ppc/translate.c      |    2 +-
 target-ppc/translate_init.c |    2 +-

 2 files changed, 2 insertions(+), 2 deletions(-)