]> git.ipfire.org Git - thirdparty/qemu.git/commit
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)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 10 Oct 2024 18:03:54 +0000 (21:03 +0300)
commitdd5a6b77f627193426e54a0a1a6c35a87f106db3
treefed49f6d36d148264ac6b1dfb0d6bcb3c095b743
parentff58fd29b490cadddd2f09166947df0bbad7e644
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>
(cherry picked from commit 4cabcb89b101942346aebff081aa1453e958fe7f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tcg/ppc/tcg-target.c.inc