From 3c84a91f5a1decfb3ade9599c01fff3be81f0363 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Mon, 6 May 2013 19:49:43 +0200 Subject: [PATCH] PPC: Fix rldcl The implementation for rldcl tried to always fetch its parameters from the opcode, even though the opcode was already passed in in decoded and different forms. Use the parameters instead, fixing rldcl. Reported-by: Torbjorn Granlund Reviewed-by: Aurelien Jarno Signed-off-by: Alexander Graf --- target-ppc/translate.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 0886f4d699..a0186163de 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -1733,8 +1733,6 @@ static inline void gen_rldnm(DisasContext *ctx, uint32_t mb, uint32_t me) { TCGv t0; - mb = MB(ctx->opcode); - me = ME(ctx->opcode); t0 = tcg_temp_new(); tcg_gen_andi_tl(t0, cpu_gpr[rB(ctx->opcode)], 0x3f); tcg_gen_rotl_tl(t0, cpu_gpr[rS(ctx->opcode)], t0); -- 2.11.4.GIT