From: Ilya Leoshkevich Date: Mon, 12 Aug 2024 08:53:09 +0000 (+0200) Subject: target/ppc: Make divd[u] handler method decodetree compatible X-Git-Tag: v9.1.2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84fb165d967d7245d2779b3a4217a08b0c312a51;p=thirdparty%2Fqemu.git target/ppc: Make divd[u] handler method decodetree compatible This is like commit 86e6202a57b1 ("target/ppc: Make divw[u] handler method decodetree compatible."), but for gen_op_arith_divd(). Cc: qemu-stable@nongnu.org Suggested-by: Richard Henderson Signed-off-by: Ilya Leoshkevich Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Nicholas Piggin (cherry picked from commit 7b4820a3e1dfba2b81f2354e7c748fc04b275dba) Signed-off-by: Michael Tokarev --- diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 02c810e8848..5a352cdad1b 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -1823,7 +1823,7 @@ static inline void gen_op_arith_divd(DisasContext *ctx, TCGv ret, tcg_gen_or_tl(cpu_so, cpu_so, cpu_ov); } - if (unlikely(Rc(ctx->opcode) != 0)) { + if (unlikely(compute_rc0)) { gen_set_Rc0(ctx, ret); } }