Skip to content

Commit

Permalink
target-mips: Streamline indexed cp1 memory addressing.
Browse files Browse the repository at this point in the history
We've already eliminated both base and index being zero.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  • Loading branch information
rth7680 authored and aurel32 committed Aug 27, 2012
1 parent 13d24f4 commit 0516867
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions target-mips/translate.c
Expand Up @@ -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. */
Expand Down

0 comments on commit 0516867

Please sign in to comment.