target/ppc: Fix lqarx to set cpu_reserve
authorNicholas Piggin <npiggin@gmail.com>
Mon, 5 Jun 2023 02:54:42 +0000 (12:54 +1000)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Sat, 10 Jun 2023 13:19:24 +0000 (10:19 -0300)
commite025e8f5a8a7e32409bb4c7c509d752486113188
treee7ae281b6dad21c49f1d0ec29c7d2396bbbc361b
parenta5436bc6ed4d385690546783f1799ea927f5ebd2
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: 94bf2658676 ("target/ppc: Use atomic load for LQ and LQARX")
Fixes: 57b38ffd0c6 ("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>
target/ppc/translate.c