qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Taylor Simpson <tsimpson@quicinc.com>, qemu-devel@nongnu.org
Cc: philmd@linaro.org, ale@rev.ng, anjo@rev.ng, bcain@quicinc.com,
	quic_mathbern@quicinc.com
Subject: Re: [PATCH v3 04/11] Hexagon (target/hexagon) Only use branch_taken when packet has multi cof
Date: Sat, 5 Nov 2022 11:04:16 +1100	[thread overview]
Message-ID: <a1e12867-a9e2-08b8-fb75-0fb58ce227e8@linaro.org> (raw)
In-Reply-To: <20221104192631.29434-5-tsimpson@quicinc.com>

On 11/5/22 06:26, Taylor Simpson wrote:
> When a packet has more than one change-of-flow instruction, only the first
> one to branch is considered.  We use the branch_taken variable to keep
> track of this.
> 
> However, when there is a single cof instruction, we don't need the same
> amount of bookkeeping.
> 
> We add the pkt_has_multi_cof member to the Packet structure, and pass this
> information to the needed functions.
> 
> When there is a generated helper function with cof, the generator will
> pass this pkt_has_multi_cof as a runtime value.
> 
> Signed-off-by: Taylor Simpson<tsimpson@quicinc.com>
> ---
>   target/hexagon/insn.h               |  1 +
>   target/hexagon/macros.h             |  2 +-
>   target/hexagon/decode.c             | 15 +++++++++++++--
>   target/hexagon/op_helper.c          | 24 +++++++++++++++---------
>   target/hexagon/translate.c          |  4 +++-
>   target/hexagon/gen_helper_funcs.py  |  5 ++++-
>   target/hexagon/gen_helper_protos.py |  8 ++++++--
>   target/hexagon/gen_tcg_funcs.py     |  5 +++++
>   target/hexagon/hex_common.py        |  3 +++
>   9 files changed, 51 insertions(+), 16 deletions(-)

Acked-by: Richard Henderson <richard.henderson@linaro.org>

r~


  reply	other threads:[~2022-11-05  0:05 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-04 19:26 [PATCH v3 00/11] Hexagon (target/hexagon) performance and bug fixes Taylor Simpson
2022-11-04 19:26 ` [PATCH v3 01/11] Hexagon (target/hexagon) Add pkt and insn to DisasContext Taylor Simpson
2022-11-04 22:46   ` Richard Henderson
2022-11-04 19:26 ` [PATCH v3 02/11] Hexagon (target/hexagon) Fix predicated assignment to .tmp and .cur Taylor Simpson
2022-11-04 22:50   ` Richard Henderson
2022-11-04 19:26 ` [PATCH v3 03/11] Hexagon (target/hexagon) Add overrides for S2_asr_r_r_sat/S2_asl_r_r_sat Taylor Simpson
2022-11-04 23:59   ` Richard Henderson
2022-11-04 19:26 ` [PATCH v3 04/11] Hexagon (target/hexagon) Only use branch_taken when packet has multi cof Taylor Simpson
2022-11-05  0:04   ` Richard Henderson [this message]
2022-11-04 19:26 ` [PATCH v3 05/11] Hexagon (target/hexagon) Remove PC from the runtime state Taylor Simpson
2022-11-05  0:07   ` Richard Henderson
2022-11-04 19:26 ` [PATCH v3 06/11] Hexagon (target/hexagon) Remove next_PC from " Taylor Simpson
2022-11-05  0:10   ` Richard Henderson
2022-11-04 19:26 ` [PATCH v3 07/11] Hexagon (target/hexagon) Add overrides for direct call instructions Taylor Simpson
2022-11-05  0:12   ` Richard Henderson
2022-11-05  0:19   ` Richard Henderson
2022-11-05  0:21   ` Richard Henderson
2022-11-04 19:26 ` [PATCH v3 08/11] Hexagon (target/hexagon) Add overrides for compound compare and jump Taylor Simpson
2022-11-05  0:15   ` Richard Henderson
2022-11-04 19:26 ` [PATCH v3 09/11] Hexagon (target/hexagon) Add overrides for various forms of jump Taylor Simpson
2022-11-05  0:22   ` Richard Henderson
2022-11-04 19:26 ` [PATCH v3 10/11] Hexagon (target/hexagon) Use direct block chaining for direct jump/branch Taylor Simpson
2022-11-05  1:33   ` Richard Henderson
2022-11-06 21:46     ` Taylor Simpson
2022-11-04 19:26 ` [PATCH v3 11/11] Hexagon (target/hexagon) Use direct block chaining for tight loops Taylor Simpson
2022-11-05  1:44   ` Richard Henderson
2022-11-06 21:52     ` Taylor Simpson
2022-11-06 23:12       ` Richard Henderson

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=a1e12867-a9e2-08b8-fb75-0fb58ce227e8@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=ale@rev.ng \
    --cc=anjo@rev.ng \
    --cc=bcain@quicinc.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quic_mathbern@quicinc.com \
    --cc=tsimpson@quicinc.com \
    /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).