Skip to content

hexagon: Add scalar v75=>v81 support

Brian Cain qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 5 repliesIn review
  2. v15 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9target/hexagon: add the v75, v79 and v81 CPU modelslinux-user/hexagon/elfload.c target/hexagon/cpu-qom.h target/hexagon/cpu.c+15 -00 replies
2/9target/hexagon: add the v73 J2_unpause scalar instructiontarget/hexagon/imported/encode_pp.def target/hexagon/imported/system.idef target/hexagon/tag_rev_info.c.inc +2 more+23 -50 replies
3/9target/hexagon: add the v79 instructionstarget/hexagon/attribs_def.h.inc target/hexagon/imported/encode_pp.def target/hexagon/imported/ldst.idef +5 more+251 -60 replies
4/9target/hexagon: add Y2_tlbpp as unimplementedtarget/hexagon/attribs_def.h.inc target/hexagon/imported/encode_pp.def target/hexagon/imported/system.idef +2 more+9 -00 replies
5/9hw/hexagon: add the V81DGB_1 and V81QA_1 machineshw/hexagon/hexagon_dsp.c hw/hexagon/machine_cfg_v81dgb_1.h.inc hw/hexagon/machine_cfg_v81qa_1.h.inc +2 more+204 -11 reply
6/9hw/hexagon: move "sim" alias to "V81QA_1"hw/hexagon/hexagon_dsp.c+1 -11 reply
7/9target/hexagon: widen v81 CPU maskstarget/hexagon/genptr.c target/hexagon/reg_fields_def.h.inc+10 -71 reply
8/9target/hexagon: add v81 interrupt registershw/hexagon/hexagon_globalreg.c target/hexagon/cpu.c target/hexagon/cpu.h +7 more+224 -721 reply
9/9tests/functional: cover v81 system registerstests/functional/hexagon/test_arch_tests.py+21 -01 reply

Reviews trailers per patch

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

PatchMarco Liebel
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-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/9] hexagon: Add scalar v75=>v81 support

Add support for the scalar opcodes from v75 through v81, and v81 machines to go along with those.

Added in v2:
- widened interrupt/CPU masks for v81
- expanded global system regs for v81
- moved 'sim' machine alias to v81qa_1
- test case to cover wider v81 interrupt masks

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

Brian Cain (9):
target/hexagon: add the v75, v79 and v81 CPU models target/hexagon: add the v73 J2_unpause scalar instruction target/hexagon: add the v79 instructions target/hexagon: add Y2_tlbpp as unimplemented hw/hexagon: add the V81DGB_1 and V81QA_1 machines hw/hexagon: move "sim" alias to "V81QA_1" target/hexagon: widen v81 CPU masks target/hexagon: add v81 interrupt registers tests/functional: cover v81 system registers

 include/hw/hexagon/hexagon.h                |  11 ++
 target/hexagon/cpu-qom.h                    |   6 +
 target/hexagon/cpu.h                        |   4 +-
 target/hexagon/hex_regs.h                   |  42 ++++++
 target/hexagon/sys_macros.h                 |  11 +-
 hw/hexagon/machine_cfg_v81dgb_1.h.inc       |  73 +++++++++
 hw/hexagon/machine_cfg_v81qa_1.h.inc        |  73 +++++++++
 target/hexagon/attribs_def.h.inc            |   3 +
 target/hexagon/reg_fields_def.h.inc         |  10 +-
 hw/hexagon/hexagon_dsp.c                    |  48 +++++-
 hw/hexagon/hexagon_globalreg.c              |  10 ++
 linux-user/hexagon/elfload.c                |   6 +
 target/hexagon/cpu.c                        |  14 +-
 target/hexagon/cpu_helper.c                 |  15 +-
 target/hexagon/genptr.c                     |   8 +-
 target/hexagon/hex_interrupts.c             | 141 ++++++++++++------
 target/hexagon/op_helper.c                  |  58 +++++---
 target/hexagon/translate.c                  |   8 +-
 tests/tcg/hexagon/check_rev_gating.c        |  32 +++-
 tests/tcg/hexagon/v73_scalar.c              |   7 +
 tests/tcg/hexagon/v79_scalar.c              | 157 ++++++++++++++++++++
 target/hexagon/tag_rev_info.c.inc           |  30 +++-
 target/hexagon/imported/encode_pp.def       |  21 +++
 target/hexagon/imported/ldst.idef           |  21 +++
 target/hexagon/imported/system.idef         |   7 +
 tests/functional/hexagon/test_arch_tests.py |  21 +++
 tests/tcg/hexagon/meson.build               |   1 +
 27 files changed, 752 insertions(+), 86 deletions(-)
 create mode 100644 hw/hexagon/machine_cfg_v81dgb_1.h.inc
 create mode 100644 hw/hexagon/machine_cfg_v81qa_1.h.inc
 create mode 100644 tests/tcg/hexagon/v79_scalar.c
Signature · 1 line
2.34.1