]> git.proxmox.com Git - qemu.git/commitdiff
PPC: Fix rldcl
authorAlexander Graf <agraf@suse.de>
Mon, 6 May 2013 17:49:43 +0000 (19:49 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 8 May 2013 18:23:20 +0000 (20:23 +0200)
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 <tg@gmplib.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c

index 0886f4d699554f260ec734b809a7e17b4abbd2e1..a0186163de5c7e1644bf918558330f0cce52adf1 100644 (file)
@@ -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);