]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/ppc: Make divd[u] handler method decodetree compatible
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 12 Aug 2024 08:53:09 +0000 (10:53 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 5 Nov 2024 15:23:22 +0000 (18:23 +0300)
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 <richard.henderson@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
(cherry picked from commit 7b4820a3e1dfba2b81f2354e7c748fc04b275dba)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/ppc/translate.c

index 02c810e884833d849d06daa5084049871555a6f6..5a352cdad1b973ddf08931d401d2bb5b6e99037a 100644 (file)
@@ -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);
     }
 }