Re: [PATCH 7/7] tcg/ppc: Use prefixed instructions for tcg_out_goto_tb

2023-08-07 Thread Nicholas Piggin
On Mon Aug 7, 2023 at 5:29 PM AEST, Nicholas Piggin wrote: > On Mon Aug 7, 2023 at 12:13 AM AEST, Richard Henderson wrote: > > On 8/6/23 05:55, Nicholas Piggin wrote: > > > On Sat Aug 5, 2023 at 7:33 AM AEST, Richard Henderson wrote: > > >> When a direct branch is out of range, we can load the dest

Re: [PATCH 7/7] tcg/ppc: Use prefixed instructions for tcg_out_goto_tb

2023-08-07 Thread Nicholas Piggin
On Mon Aug 7, 2023 at 12:13 AM AEST, Richard Henderson wrote: > On 8/6/23 05:55, Nicholas Piggin wrote: > > On Sat Aug 5, 2023 at 7:33 AM AEST, Richard Henderson wrote: > >> When a direct branch is out of range, we can load the destination for > >> the indirect branch using PLA (for 16GB worth of b

Re: [PATCH 7/7] tcg/ppc: Use prefixed instructions for tcg_out_goto_tb

2023-08-06 Thread Jordan Niethe
On Sat, Aug 5, 2023 at 7:34 AM Richard Henderson wrote: > > When a direct branch is out of range, we can load the destination for > the indirect branch using PLA (for 16GB worth of buffer) and PLD from > the TranslationBlock for everything larger. > > This means the patch affects exactly one instr

Re: [PATCH 7/7] tcg/ppc: Use prefixed instructions for tcg_out_goto_tb

2023-08-06 Thread Nicholas Piggin
On Mon Aug 7, 2023 at 12:13 AM AEST, Richard Henderson wrote: > On 8/6/23 05:55, Nicholas Piggin wrote: > > On Sat Aug 5, 2023 at 7:33 AM AEST, Richard Henderson wrote: > >> When a direct branch is out of range, we can load the destination for > >> the indirect branch using PLA (for 16GB worth of b

Re: [PATCH 7/7] tcg/ppc: Use prefixed instructions for tcg_out_goto_tb

2023-08-06 Thread Richard Henderson
On 8/6/23 05:55, Nicholas Piggin wrote: On Sat Aug 5, 2023 at 7:33 AM AEST, Richard Henderson wrote: When a direct branch is out of range, we can load the destination for the indirect branch using PLA (for 16GB worth of buffer) and PLD from the TranslationBlock for everything larger. This means

Re: [PATCH 7/7] tcg/ppc: Use prefixed instructions for tcg_out_goto_tb

2023-08-06 Thread Nicholas Piggin
On Sat Aug 5, 2023 at 7:33 AM AEST, Richard Henderson wrote: > When a direct branch is out of range, we can load the destination for > the indirect branch using PLA (for 16GB worth of buffer) and PLD from > the TranslationBlock for everything larger. > > This means the patch affects exactly one ins

[PATCH 7/7] tcg/ppc: Use prefixed instructions for tcg_out_goto_tb

2023-08-04 Thread Richard Henderson
When a direct branch is out of range, we can load the destination for the indirect branch using PLA (for 16GB worth of buffer) and PLD from the TranslationBlock for everything larger. This means the patch affects exactly one instruction: B (plus filler), PLA or PLD. Which means we can update and