qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-ppc: Fix 2nd parameter for tcg_gen_shri_tl
@ 2012-06-24 14:18 Stefan Weil
  2012-06-24 15:14 ` Alexander Graf
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2012-06-24 14:18 UTC (permalink / raw)
  To: Blue Swirl; +Cc: Stefan Weil, qemu-devel, Alexander Graf

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

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---

Alex, please review. It fixes the compiler error, but I did the change
simply by comparision with other functions, so I have no idea whether
it is really correct.

Regards,
Stefan

 target-ppc/translate_init.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 }
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] target-ppc: Fix 2nd parameter for tcg_gen_shri_tl
  2012-06-24 14:18 [Qemu-devel] [PATCH] target-ppc: Fix 2nd parameter for tcg_gen_shri_tl Stefan Weil
@ 2012-06-24 15:14 ` Alexander Graf
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2012-06-24 15:14 UTC (permalink / raw)
  To: Stefan Weil; +Cc: Blue Swirl, qemu-devel@nongnu.org, Stefan Hajnoczi



On 24.06.2012, at 16:18, Stefan Weil <sw@weilnetz.de> wrote:

> This fixes a compiler error when QEMU was configured with --enable-debug.
> 
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
> 
> Alex, please review. It fixes the compiler error, but I did the change
> simply by comparision with other functions, so I have no idea whether
> it is really correct.

Looks good at a first glance, but will verify tonight. Thanks a lot for catching it!

I guess we should add an --enable-debug build to buildbot.

Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-24 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-24 14:18 [Qemu-devel] [PATCH] target-ppc: Fix 2nd parameter for tcg_gen_shri_tl Stefan Weil
2012-06-24 15:14 ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).