Skip to content

Hexagon (target/hexagon) Enable more short-circuit packets

Taylor Simpson qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Hexagon (target/hexagon) Analyze reads before writestarget/hexagon/README target/hexagon/gen_analyze_funcs.py target/hexagon/hex_common.py +1 more+83 -491 reply
2/3Hexagon (target/hexagon) Enable more short-circuit packets (scalar core)target/hexagon/translate.c target/hexagon/translate.h+11 -231 reply
3/3Hexagon (target/hexagon) Enable more short-circuit packets (HVX)target/hexagon/gen_analyze_funcs.py target/hexagon/hex_common.py target/hexagon/translate.c +1 more+115 -951 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchBrian Cain
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] Hexagon (target/hexagon) Enable more short-circuit packets

This patch series improves the set of packets that can short-circuit the commit packet logic and write the results directly during the execution of each instruction in the packet.

The key observation is that checking for overlap between register reads and writes is different from read-after-write. For example, this packet

    { R0 = add(R0,R1); R6 = add(R6,R7) }

has an overlap between the reads and writes without doing a read after a write. Therefore, it is safe to write directly into the destination registers during instruction execution.

Another example is a .new register read. These can read from either the destination register or a temporary location.

HVX instructions with generated helpers require special handling. The semantics of the helpers are pass-by-reference, so we still need the overlap check for these.

***** Changes in v2 *****
Conform to object oriented generators patch
https://lists.gnu.org/archive/html/qemu-devel/2023-12/msg01211.html

Taylor Simpson (3):
Hexagon (target/hexagon) Analyze reads before writes Hexagon (target/hexagon) Enable more short-circuit packets (scalar
core)
Hexagon (target/hexagon) Enable more short-circuit packets (HVX)

 target/hexagon/translate.h          | 119 +++++++++++++++++++++++-----
 target/hexagon/translate.c          |  77 ++----------------
 target/hexagon/README               |   9 ++-
 target/hexagon/gen_analyze_funcs.py |  55 ++++++++-----
 target/hexagon/hex_common.py        |  98 +++++++++++++----------
 5 files changed, 200 insertions(+), 158 deletions(-)
Signature · 1 line
2.34.1