On 12/26/24 13:19, Jiaxun Yang wrote:
gen_sc should use make_address_i to obtain source address
to ensure that address is properly truncated.

Another temp value is created in middle to avoid data corruption
as make_address_i may return the same memory location as src1.

Signed-off-by: Jiaxun Yang<jiaxun.y...@flygoat.com>
---
  target/loongarch/tcg/insn_trans/trans_atomic.c.inc | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to