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

2022-10-04 Thread Richard Henderson
On 10/3/22 11:32, Leandro Lupori wrote: On 9/19/22 14:56, 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, w

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

2022-10-03 Thread Leandro Lupori
On 9/19/22 14:56, 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 ins

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

2022-09-19 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