Received: from eggs.gnu.org ([208.118.235.92]:42530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SineH-0007qL-7Y for qemu-devel@nongnu.org; Sun, 24 Jun 2012 10:18:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SineF-0007Cw-LV for qemu-devel@nongnu.org; Sun, 24 Jun 2012 10:18:44 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:55956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SineF-0007Cm-FO for qemu-devel@nongnu.org; Sun, 24 Jun 2012 10:18:43 -0400 From: Stefan Weil Date: Sun, 24 Jun 2012 16:18:41 +0200 Message-Id: <1340547521-8608-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] target-ppc: Fix 2nd parameter for tcg_gen_shri_tl List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Stefan Weil , qemu-devel@nongnu.org, Alexander Graf This fixes a compiler error when QEMU was configured with --enable-debug. Signed-off-by: Stefan Weil --- 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