Re: [PATCH v4 4/5] tcg/sparc: Add tcg_out_jmpl_const for better tail calls

2022-02-04 Thread Richard Henderson
On 2/5/22 05:34, Peter Maydell wrote: On Fri, 4 Feb 2022 at 07:54, Richard Henderson wrote: 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

Re: [PATCH v4 4/5] tcg/sparc: Add tcg_out_jmpl_const for better tail calls

2022-02-04 Thread Peter Maydell
On Fri, 4 Feb 2022 at 07:54, Richard Henderson wrote: > > 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 clobberin

[PATCH v4 4/5] tcg/sparc: Add tcg_out_jmpl_const for better tail calls

2022-02-03 Thread Richard Henderson
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. Signed-off-by