Skip to content

Export debug triggers as an extension

Himanshu Chauhan qemu-devel qemu-riscv 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 12 repliesSuperseded

Changes in v3 from the cover letter

- Mark debug property as deprecated and replace internally with sdtrig extension
- setting/unsetting debug property shows warning and sets/unsets ext_sdtrig
- sdtrig is added to ISA string as RISC-V debug specification is frozen

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2target/riscv: Mark debug property as deprecatedtarget/riscv/cpu.c target/riscv/cpu_cfg.h target/riscv/cpu_helper.c +2 more+38 -70 replies
2/2target/riscv: Export sdtrig in ISA stringtarget/riscv/cpu.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] Export debug triggers as an extension

All the CPUs may or may not implement the debug triggers (sdtrig) extension. The presence of it should be dynamically detectable. This patch exports the debug triggers as an extension which can be turned on or off by sdtrig=<true/false> option. It is turned on by default.

"sdtrig" is concatenated to ISA string when it is enabled. Like so:
rv64imafdch_zicbom_*_sdtrig_*_sstc_svadu

Changes from v1:
- Replaced the debug property with ext_sdtrig
- Marked it experimenatal by naming it x-sdtrig
- x-sdtrig is added to ISA string
- Reversed the patch order

Changes from v2:
- Mark debug property as deprecated and replace internally with sdtrig extension
- setting/unsetting debug property shows warning and sets/unsets ext_sdtrig
- sdtrig is added to ISA string as RISC-V debug specification is frozen

Himanshu Chauhan (2):
target/riscv: Mark debug property as deprecated
target/riscv: Export sdtrig in ISA string

 target/riscv/cpu.c        | 38 +++++++++++++++++++++++++++++++++++---
 target/riscv/cpu_cfg.h    |  2 +-
 target/riscv/cpu_helper.c |  2 +-
 target/riscv/csr.c        |  2 +-
 target/riscv/machine.c    |  2 +-
 5 files changed, 39 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1