qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Leandro Lupori <leandro.lupori@eldorado.org.br>,
	qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: npiggin@gmail.com
Subject: Re: [PATCH v3] tcg/ppc: Optimize 26-bit jumps
Date: Tue, 4 Oct 2022 07:11:56 -0700	[thread overview]
Message-ID: <afc00ecd-9750-e369-dda0-3c51fefb3baf@linaro.org> (raw)
In-Reply-To: <2ae7b41c-0a1a-dc2a-d7cf-bb14096f524f@eldorado.org.br>

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	other threads:[~2022-10-04 15:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-19 17:56 [PATCH v3] tcg/ppc: Optimize 26-bit jumps Leandro Lupori
2022-10-03 18:32 ` Leandro Lupori
2022-10-04 14:11   ` Richard Henderson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afc00ecd-9750-e369-dda0-3c51fefb3baf@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=leandro.lupori@eldorado.org.br \
    --cc=npiggin@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).