mirror of https://github.com/xemu-project/xemu.git
target/ppc: Fix lqarx to set cpu_reserve
lqarx does not set cpu_reserve, which causes stqcx. to never succeed. Cc: qemu-stable@nongnu.org Fixes:94bf265867
("target/ppc: Use atomic load for LQ and LQARX") Fixes:57b38ffd0c
("target/ppc: Use tcg_gen_qemu_{ld,st}_i128 for LQARX, LQ, STQ") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230605025445.161932-1-npiggin@gmail.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> (cherry picked from commite025e8f5a8
) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
9b55660e4a
commit
d31e0a3843
|
@ -3972,6 +3972,7 @@ static void gen_lqarx(DisasContext *ctx)
|
|||
}
|
||||
tcg_temp_free(EA);
|
||||
|
||||
tcg_gen_mov_tl(cpu_reserve, EA);
|
||||
tcg_gen_st_tl(hi, cpu_env, offsetof(CPUPPCState, reserve_val));
|
||||
tcg_gen_st_tl(lo, cpu_env, offsetof(CPUPPCState, reserve_val2));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue