Skip to content

Hexagon: exception, interrupt, system reg fixes

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 of 11 patches 8 repliesIn review
  2. v110 of 11 patches 18 repliesSuperseded

Changes in v2 from the cover letter

- for guard writes to unimplemented guest registers: updated the logic to early-return and clarified the commit message.
- implement direct-to-guest interrupt delivery: added a comment to explain "dtg".

9 of 11 patches are in this archive. The cover letter announces 11.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11target/hexagon: align exceptions for user/sysemulinux-user/hexagon/cpu_loop.c target/hexagon/cpu.c target/hexagon/translate.c +1 more+23 -390 replies
2/11tests/tcg/hexagon: check priv instructions raise SIGILLtests/tcg/hexagon/Makefile.target tests/tcg/hexagon/privileged-insn.c+80 -00 replies
3/11hw/intc: clear pending bit on l2vic de-assertionhw/intc/hex-l2vic.c+2 -02 replies
4/11target/hexagon: guard writes to unimplemented guest registerstarget/hexagon/hex_common.py target/hexagon/translate.h+20 -21 reply
5/11target/hexagon: take BQL when reading the system pcycle counttarget/hexagon/cpu_helper.c+8 -40 replies
6/11target/hexagon: gate GPCYCLE guest register reads on SSR:CEtarget/hexagon/cpu.c target/hexagon/op_helper.c+7 -93 replies
7/11target/hexagon: read UTIMERLO/UTIMERHI from the global timertarget/hexagon/genptr.c target/hexagon/helper.h target/hexagon/op_helper.c +1 more+62 -31 reply
8/11target/hexagon: raise imprecise exception on multi-TLB matchhw/hexagon/hexagon_tlb.c include/hw/hexagon/hexagon_tlb.h target/hexagon/cpu.h +4 more+77 -80 replies
9/11target/hexagon: implement direct-to-guest interrupt deliverytarget/hexagon/cpu.c target/hexagon/hex_interrupts.c target/hexagon/reg_fields_def.h.inc+96 -71 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPierrick Bouvier
SeriesR-b R-b
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-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 00/11] Hexagon: exception, interrupt, system reg fixes

Changes to address some test cases:
- user/system mode exception consolidation
- Direct-to-Guest interrupt delivery
- interrupt mask writes, tlb probe exception
- l2vic edge-trigger clear on deassert
- map architectural timer regs to clock

v2:
- for guard writes to unimplemented guest registers: updated the logic to early-return and clarified the commit message.
- implement direct-to-guest interrupt delivery: added a comment to explain "dtg".

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

Brian Cain (10):
target/hexagon: align exceptions for user/sysemu tests/tcg/hexagon: check priv instructions raise SIGILL target/hexagon: guard writes to unimplemented guest registers target/hexagon: take BQL when reading the system pcycle count target/hexagon: gate GPCYCLE guest register reads on SSR:CE target/hexagon: read UTIMERLO/UTIMERHI from the global timer target/hexagon: raise imprecise exception on multi-TLB match target/hexagon: implement direct-to-guest interrupt delivery target/hexagon: fix iassign{r,w} to cover all threads tests/functional/hexagon: update to v0.2.12,

    +test_{interrupts,sys_regs}

Sid Manning (1):
hw/intc: clear pending bit on l2vic de-assertion

 include/hw/hexagon/hexagon_tlb.h            |  3 +-
 target/hexagon/cpu.h                        |  1 +
 target/hexagon/helper.h                     |  4 +
 target/hexagon/translate.h                  |  6 +-
 target/hexagon/reg_fields_def.h.inc         |  7 ++
 hw/hexagon/hexagon_tlb.c                    |  5 +-
 hw/intc/hex-l2vic.c                         |  2 +
 linux-user/hexagon/cpu_loop.c               | 30 +++----
 target/hexagon/cpu.c                        | 15 +++-
 target/hexagon/cpu_helper.c                 | 12 ++-
 target/hexagon/genptr.c                     | 29 +++++++
 target/hexagon/hex_interrupts.c             | 91 +++++++++++++++++++--
 target/hexagon/hex_mmu.c                    |  5 +-
 target/hexagon/hexswi.c                     | 37 ++++++++-
 target/hexagon/machine.c                    |  5 +-
 target/hexagon/op_helper.c                  | 72 ++++++++--------
 target/hexagon/translate.c                  | 56 +++++++++----
 tests/tcg/hexagon/privileged-insn.c         | 79 ++++++++++++++++++
 tests/tcg/hexagon/reg_mut.c                 | 11 ++-
 target/hexagon/hex_common.py                | 18 +++-
 tests/functional/hexagon/test_arch_tests.py | 12 ++-
 tests/tcg/hexagon/Makefile.target           |  1 +
 22 files changed, 395 insertions(+), 106 deletions(-)
 create mode 100644 tests/tcg/hexagon/privileged-insn.c
Signature · 1 line
2.34.1