Skip to content

Hexagon: HMX system

Brian Cain qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 1 replyIn review
  2. v28 patches 4 repliesSuperseded
  3. v18 patches 9 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8target/hexagon: add HMX attrs, statetarget/hexagon/attribs_def.h.inc target/hexagon/hmx_state.h+105 -00 replies
2/8hw/hexagon: add the HMX context devicehw/hexagon/hex-subsys.c hw/hexagon/hexagon_hmx_context.c hw/hexagon/meson.build +2 more+86 -00 replies
3/8target/hexagon: add per-CPU HMX configurationhw/hexagon/hex-subsys.c target/hexagon/cpu.c target/hexagon/cpu.h +3 more+71 -00 replies
4/8target/hexagon: import HMX instruction definitionstarget/hexagon/gen_helper_funcs.py target/hexagon/imported/allext.idef target/hexagon/imported/allextenc.def +3 more+685 -10 replies
5/8target/hexagon: gate HMX exec on SSR:XE2target/hexagon/cpu.c target/hexagon/cpu.h target/hexagon/decode.c +4 more+34 -00 replies
6/8hw/hexagon: describe HMX in the device treehw/hexagon/hex-board.c+6 -00 replies
7/8hw/hexagon: migrate the HMX statehw/hexagon/hexagon_hmx_context.c+117 -00 replies
8/8target/hexagon: implement mxclracctarget/hexagon/gen_idef_parser_funcs.py target/hexagon/gen_tcg_hmx.h target/hexagon/genptr.c +5 more+61 -91 reply

Reviews trailers per patch

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

PatchMarco LiebelPierrick Bouvier
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-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/8] Hexagon: HMX system

Add HMX system emulation features and log the HMX opcodes as 'UNIMP' for now.

"target/hexagon: implement mxclracc" is the sole patch without a R-b in v3.

In v3:
- Moved mxclracc effects to "commit" stage so there's no issue w/packet replay/idempotency.
- Fixed potential null pointer deref by adding cpu->hmx link to TB_FLAGS.

In v2:
- Fixed the .introduced references in tag_rev_info.c.inc to use the correct arch revision for the HMX opcodes.
- Fix the override for mxclracc.

v2: https://lore.kernel.org/qemu-devel/[email protected]/
v1: https://lore.kernel.org/qemu-devel/[email protected]/

Brian Cain (8):
target/hexagon: add HMX attrs, state hw/hexagon: add the HMX context device target/hexagon: add per-CPU HMX configuration target/hexagon: import HMX instruction definitions target/hexagon: gate HMX exec on SSR:XE2 hw/hexagon: describe HMX in the device tree hw/hexagon: migrate the HMX state target/hexagon: implement mxclracc

 include/hw/hexagon/hexagon.h               |   5 +
 include/hw/hexagon/hexagon_hmx_context.h   |  24 ++
 target/hexagon/cpu.h                       |   9 +
 target/hexagon/gen_tcg_hmx.h               |  13 +
 target/hexagon/helper.h                    |   2 +
 target/hexagon/hmx_config.h                |  17 +
 target/hexagon/hmx_state.h                 |  92 ++++++
 target/hexagon/insn.h                      |   1 +
 target/hexagon/translate.h                 |   2 +
 target/hexagon/attribs_def.h.inc           |  13 +
 hw/hexagon/hex-board.c                     |   6 +
 hw/hexagon/hex-subsys.c                    |  23 ++
 hw/hexagon/hexagon_hmx_context.c           | 157 +++++++++
 target/hexagon/cpu.c                       |  26 ++
 target/hexagon/decode.c                    |   3 +
 target/hexagon/genptr.c                    |   1 +
 target/hexagon/hmx_config.c                |  15 +
 target/hexagon/op_helper.c                 |  12 +
 target/hexagon/translate.c                 |  36 +++
 target/hexagon/tag_rev_info.c.inc          | 349 +++++++++++++++++++++
 hw/hexagon/meson.build                     |   1 +
 target/hexagon/gen_helper_funcs.py         |   3 +-
 target/hexagon/gen_idef_parser_funcs.py    |   6 +
 target/hexagon/hex_common.py               |   2 +
 target/hexagon/imported/allext.idef        |   6 +
 target/hexagon/imported/allextenc.def      |   4 +
 target/hexagon/imported/hmx/encode_ext.def | 149 +++++++++
 target/hexagon/imported/hmx/ext.idef       | 175 +++++++++++
 target/hexagon/meson.build                 |  18 +-
 tests/functional/hexagon/test_systests.py  |   3 +
 30 files changed, 1164 insertions(+), 9 deletions(-)
 create mode 100644 include/hw/hexagon/hexagon_hmx_context.h
 create mode 100644 target/hexagon/gen_tcg_hmx.h
 create mode 100644 target/hexagon/hmx_config.h
 create mode 100644 target/hexagon/hmx_state.h
 create mode 100644 hw/hexagon/hexagon_hmx_context.c
 create mode 100644 target/hexagon/hmx_config.c
 create mode 100644 target/hexagon/imported/hmx/encode_ext.def
 create mode 100644 target/hexagon/imported/hmx/ext.idef
Signature · 1 line
2.34.1