Re: [PATCH] tcg/ppc: Optimize 26-bit jumps

2022-09-09 Thread Leandro Lupori
On 9/8/22 18:44, Richard Henderson wrote: On 9/8/22 22:18, Leandro Lupori wrote: PowerPC64 processors handle direct branches better than indirect ones, resulting in less stalled cycles and branch misses. However, PPC's tb_target_set_jmp_target() was only using direct branches for 16-bit jumps,

Re: [PATCH] tcg/ppc: Optimize 26-bit jumps

2022-09-08 Thread Richard Henderson
On 9/8/22 22:18, Leandro Lupori wrote: PowerPC64 processors handle direct branches better than indirect ones, resulting in less stalled cycles and branch misses. However, PPC's tb_target_set_jmp_target() was only using direct branches for 16-bit jumps, while PowerPC64's unconditional branch inst

[PATCH] tcg/ppc: Optimize 26-bit jumps

2022-09-08 Thread Leandro Lupori
PowerPC64 processors handle direct branches better than indirect ones, resulting in less stalled cycles and branch misses. However, PPC's tb_target_set_jmp_target() was only using direct branches for 16-bit jumps, while PowerPC64's unconditional branch instructions are able to handle displacements