Patchwork [2/2] target-ppc: Fix 2nd parameter for tcg_gen_shri_tl

login
register
mail settings
Submitter Alexander Graf
Date June 24, 2012, 8:53 p.m.
Message ID <1340571197-14734-3-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/166904/
State New
Headers show

Comments

Alexander Graf - June 24, 2012, 8:53 p.m.
From: Stefan Weil <sw@weilnetz.de>

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

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 target-ppc/translate_init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index e6580ff..5742229 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -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);
 }