tcg/sparc: Add tcg_out_jmpl_const for better tail calls
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 4 Aug 2021 23:23:05 +0000 (02:23 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Feb 2022 22:00:00 +0000 (09:00 +1100)
commite01d60f211251388a5d9ae7e02d0b4500af26966
treeb18178d93c3ba38b3f0465ed808643b0da71d2fe
parentc834b8d81b0ee597d185a4d8127dfc76230307c8
tcg/sparc: Add tcg_out_jmpl_const for better tail calls

Due to mapping changes, we now rarely place the code_gen_buffer
near the main executable.  Which means that direct calls will
now rarely be in range.

So, always use indirect calls for tail calls, which allows us to
avoid clobbering %o7, and therefore we need not save and restore it.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/sparc/tcg-target.c.inc