diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 1a598f38ccf3bd1f08d1a0e02ced326a7edb82b8..660407cf67bb1f6e973e41b3b2a4929c70637890 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -1685,8 +1685,8 @@ static inline void gen_stf_asi(TCGv addr, int insn, int size, int rd) { TCGv r_asi; - r_asi = gen_get_asi(insn, cpu_T[0]); - tcg_gen_helper_0_4(helper_stf_asi, cpu_T[0], r_asi, tcg_const_i32(size), + r_asi = gen_get_asi(insn, addr); + tcg_gen_helper_0_4(helper_stf_asi, addr, r_asi, tcg_const_i32(size), tcg_const_i32(rd)); tcg_gen_discard_i32(r_asi); }