mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 14:02:05 -06:00
target/mips: Avoid tcg_const_tl in gen_r6_ld
Allocate a separate temp for modification. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
0694cd597d
commit
0bcc6b4cfd
1 changed files with 2 additions and 2 deletions
|
@ -2964,8 +2964,8 @@ static void gen_HILO(DisasContext *ctx, uint32_t opc, int acc, int reg)
|
||||||
static inline void gen_r6_ld(target_long addr, int reg, int memidx,
|
static inline void gen_r6_ld(target_long addr, int reg, int memidx,
|
||||||
MemOp memop)
|
MemOp memop)
|
||||||
{
|
{
|
||||||
TCGv t0 = tcg_const_tl(addr);
|
TCGv t0 = tcg_temp_new();
|
||||||
tcg_gen_qemu_ld_tl(t0, t0, memidx, memop);
|
tcg_gen_qemu_ld_tl(t0, tcg_constant_tl(addr), memidx, memop);
|
||||||
gen_store_gpr(t0, reg);
|
gen_store_gpr(t0, reg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue