tcg/ppc: Use TCG_REG_TMP2 for scratch tcg_out_qemu_st
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 5 Oct 2024 22:09:54 +0000 (22:09 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Oct 2024 13:40:13 +0000 (06:40 -0700)
commit4cabcb89b101942346aebff081aa1453e958fe7f
tree1fb56d0b0d2002cc25b8adc09196782a4a89e182
parent124e769083c35dd3f0b4840e1726c671677092b3
tcg/ppc: Use TCG_REG_TMP2 for scratch tcg_out_qemu_st

In the fallback when STDBRX is not available, avoid clobbering
TCG_REG_TMP1, which might be h.base, which is still in use.
Use TCG_REG_TMP2 instead.

Cc: qemu-stable@nongnu.org
Fixes: 01a112e2e9 ("tcg/ppc: Reorg tcg_out_tlb_read")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-By: Michael Tokarev <mjt@tls.msk.ru>
tcg/ppc/tcg-target.c.inc