Skip to content

Hexagon (target/hexagon) Only pass env to generated helper when needed

Taylor Simpson qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 3 repliesIn review
  2. v23 patches 1 replySuperseded
  3. v11 patch 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Hexagon (target/hexagon) Pass P0 explicitly to helpers that need ittarget/hexagon/hex_common.py target/hexagon/macros.h+13 -31 reply
2/3Hexagon (target/hexagon) Pass SP explicitly to helpers that need ittarget/hexagon/attribs_def.h.inc target/hexagon/hex_common.py target/hexagon/macros.h+14 -22 replies
3/3Hexagon (target/hexagon) Only pass env to generated helper when neededtarget/hexagon/gen_helper_protos.py target/hexagon/gen_tcg.h target/hexagon/hex_common.py+32 -80 replies

Reviews trailers per patch

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

PatchAnton JohanssonBrian Cain
1/3R-b T-b R-b
2/3R-b T-b R-b R-b
3/3R-b T-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] Hexagon (target/hexagon) Only pass env to generated helper when needed

Currently, we pass env to every generated helper. When the semantics of the instruction only depend on the arguments, this is unnecessary and adds extra overhead to the helper call.

**** Changes in v3 ****
Update copyright year to 2024
Mark Reviewed-by/Tested-by: Anton Johansson <[email protected]>

**** Changes in v2 ****
- Separate patches to pass P0 and SP explicitly to helpers that need it
- Add the TCG_CALL_NO_RWG_SE flag to any non-HVX helpers that don't get ptr to env

Taylor Simpson (3):
Hexagon (target/hexagon) Pass P0 explicitly to helpers that need it Hexagon (target/hexagon) Pass SP explicitly to helpers that need it Hexagon (target/hexagon) Only pass env to generated helper when needed

 target/hexagon/gen_tcg.h            |  5 +++-
 target/hexagon/macros.h             |  6 ++--
 target/hexagon/attribs_def.h.inc    |  3 +-
 target/hexagon/gen_helper_protos.py | 12 ++++++--
 target/hexagon/hex_common.py        | 46 +++++++++++++++++++++++++----
 5 files changed, 59 insertions(+), 13 deletions(-)
Signature · 1 line
2.34.1