qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Richard Henderson
Subject: Re: [PATCH v3] tcg/ppc: Optimize 26-bit jumps
Date: Tue, 4 Oct 2022 07:11:56 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

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, while PowerPC64's unconditional branch
instructions are able to handle displacements of up to 26 bits.
To take advantage of this, now jumps whose displacements fit in
between 17 and 26 bits are also converted to direct branches.

Signed-off-by: Leandro Lupori <leandro.lupori@eldorado.org.br>
---
v3:
   - make goto tb code 16-byte aligned
   - code cleanup


Ping?

Does v3 look good now?

It does, thanks.  I will queue it for tcg-next.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]