]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/ppc: Use TCG_REG_TMP2 for scratch index in prepare_host_addr
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)
commit8f583fd99a2832b2e660e8ca5d53fa6496c27dd5
tree06c91729210218156d49692876bcea7f2c3b3707
parent854a38fd9d212d2fce594b34bd989f9ef7e40c75
tcg/ppc: Use TCG_REG_TMP2 for scratch index in prepare_host_addr

In tcg_out_qemu_ldst_i128, we need a non-zero index register,
which we then use as a base register in several address modes.
Since we always have TCG_REG_TMP2 available, use that.

Cc: qemu-stable@nongnu.org
Fixes: 526cd4ec01f ("tcg/ppc: Support 128-bit load/store")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2597
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-By: Michael Tokarev <mjt@tls.msk.ru>
(cherry picked from commit 3213da7b9539581c6df95f8ced5b09d0b02d425f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tcg/ppc/tcg-target.c.inc