]> 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:38 +0000 (21:03 +0300)
commit854a38fd9d212d2fce594b34bd989f9ef7e40c75
treec8bc278f606dc0de08c23d4ee2b4631b13639eb5
parent167c8d374aba92fd24f87445b43d093f31f84c09
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