projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13d24f4
)
target-mips: Streamline indexed cp1 memory addressing.
author
Richard Henderson
<rth@twiddle.net>
Fri, 30 Mar 2012 17:16:36 +0000
(13:16 -0400)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Mon, 27 Aug 2012 10:17:39 +0000
(12:17 +0200)
We've already eliminated both base and index being zero.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c
patch
|
blob
|
history
diff --git
a/target-mips/translate.c
b/target-mips/translate.c
index d8129864ed5e8c8aeb05e098db99d719d7671d69..f740a083209d3ebd7b8e21dc84a2ab9f08daf95b 100644
(file)
--- a/
target-mips/translate.c
+++ b/
target-mips/translate.c
@@
-7742,8
+7742,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. */