qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Hexagon (target/hexagon) Enable more short-circuit packets
@ 2023-11-03 16:22 Taylor Simpson
  2023-11-03 16:22 ` [PATCH 1/3] Hexagon (target/hexagon) Analyze reads before writes Taylor Simpson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Taylor Simpson @ 2023-11-03 16:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: bcain, quic_mathbern, richard.henderson, philmd, ale, anjo,
	ltaylorsimpson

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.

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          | 117 ++++++++++---
 target/hexagon/translate.c          |  75 +--------
 target/hexagon/README               |   7 +-
 target/hexagon/gen_analyze_funcs.py | 252 ++++++++++++----------------
 target/hexagon/gen_tcg_funcs.py     |   2 +-
 target/hexagon/hex_common.py        |  10 ++
 6 files changed, 227 insertions(+), 236 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/3] Hexagon (target/hexagon) Enable more short-circuit packets
@ 2023-11-02 20:10 Taylor Simpson
  2023-11-02 20:10 ` [PATCH 3/3] Hexagon (target/hexagon) Enable more short-circuit packets (HVX) Taylor Simpson
  0 siblings, 1 reply; 5+ messages in thread
From: Taylor Simpson @ 2023-11-02 20:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Taylor Simpson

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.


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          | 117 ++++++++++---
 target/hexagon/translate.c          |  75 +--------
 target/hexagon/README               |   7 +-
 target/hexagon/gen_analyze_funcs.py | 252 ++++++++++++----------------
 target/hexagon/gen_tcg_funcs.py     |   2 +-
 target/hexagon/hex_common.py        |  10 ++
 6 files changed, 227 insertions(+), 236 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-11-03 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-03 16:22 [PATCH 0/3] Hexagon (target/hexagon) Enable more short-circuit packets Taylor Simpson
2023-11-03 16:22 ` [PATCH 1/3] Hexagon (target/hexagon) Analyze reads before writes Taylor Simpson
2023-11-03 16:22 ` [PATCH 2/3] Hexagon (target/hexagon) Enable more short-circuit packets (scalar core) Taylor Simpson
2023-11-03 16:22 ` [PATCH 3/3] Hexagon (target/hexagon) Enable more short-circuit packets (HVX) Taylor Simpson
  -- strict thread matches above, loose matches on Subject: below --
2023-11-02 20:10 [PATCH 0/3] Hexagon (target/hexagon) Enable more short-circuit packets Taylor Simpson
2023-11-02 20:10 ` [PATCH 3/3] Hexagon (target/hexagon) Enable more short-circuit packets (HVX) Taylor Simpson

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).