qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] PPC: Fix rldcl


From: Aurelien Jarno
Subject: Re: [Qemu-devel] [PATCH] PPC: Fix rldcl
Date: Mon, 6 May 2013 22:24:15 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, May 06, 2013 at 07:53:07PM +0200, Alexander Graf wrote:
> 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 <address@hidden>
> Signed-off-by: Alexander Graf <address@hidden>
> ---
>  target-ppc/translate.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/target-ppc/translate.c b/target-ppc/translate.c
> index 0886f4d..a018616 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);

Reviewed-by: Aurelien Jarno <address@hidden>


-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
address@hidden                 http://www.aurel32.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]