qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 1/3] target-mips: Streamline indexed cp1 memory addr


From: Richard Henderson
Subject: [Qemu-devel] [PATCH 1/3] target-mips: Streamline indexed cp1 memory addressing.
Date: Sat, 17 Dec 2011 14:21:44 -0800

We've already eliminated both base and index being zero.

Signed-off-by: Richard Henderson <address@hidden>
---
 target-mips/translate.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/target-mips/translate.c b/target-mips/translate.c
index d5b1c76..b20a817 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -7749,8 +7749,7 @@ static void gen_flt3_ldst (DisasContext *ctx, uint32_t 
opc,
     } else if (index == 0) {
         gen_load_gpr(t0, base);
     } else {
-        gen_load_gpr(t0, index);
-        gen_op_addr_add(ctx, t0, cpu_gpr[base], t0);
+        gen_op_addr_add(ctx, t0, cpu_gpr[base], cpu_gpr[index]);
     }
     /* Don't do NOP if destination is zero: we must perform the actual
        memory access. */
-- 
1.7.7.4




reply via email to

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