]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: Fix temp usage in gen_op_arith_modw
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 8 Apr 2023 07:05:47 +0000 (00:05 -0700)
committerCédric Le Goater <clg@kaod.org>
Sun, 9 Apr 2023 17:21:27 +0000 (19:21 +0200)
commita253231fbede6e69bf287afd90f67347a7383aab
treeb7e4a13a6e883265b7945cb993085ce01866fc35
parentc6f3cbca32bde9ee94d9949aa63e8a7ef2d7bc5b
target/ppc: Fix temp usage in gen_op_arith_modw

Fix a crash writing to 't3', which is now a constant.
Instead, write the result of the remu to 't0'.

Fixes: 7058ff5231a ("target/ppc: Avoid tcg_const_* in translate.c")
Reported-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
[ clg: amend commit log s/t1/t0/ ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/translate.c