Skip to contentSkip to conversation

PPC: Fix rldcl

PATCH In review Alexander Graf 2 participants 2 messages May 6, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 target-ppc/translate.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
target-ppc/translate.c +0 -2
index 0886f4d..a018616 100644
@@ -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);
Signature · 1 line
1.6.0.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Alexander Graf

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.

---
 target-ppc/translate.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
target-ppc/translate.c +0 -0
index 0886f4d..a018616 100644

target-ppc/translate.c static inline void gen_rldnm(DisasContext *ctx, uint32_t mb, uint32_t me) · line 1738

Quoted 8 lines
target-ppc/translate.c +0 -2
@@ -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);
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net