qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Export debug triggers as an extension
@ 2024-02-29 13:37 Himanshu Chauhan
  2024-02-29 13:37 ` [PATCH v3 1/2] target/riscv: Mark debug property as deprecated Himanshu Chauhan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Himanshu Chauhan @ 2024-02-29 13:37 UTC (permalink / raw)
  To: qemu-riscv, qemu-devel; +Cc: Himanshu Chauhan

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(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-06  3:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-29 13:37 [PATCH v3 0/2] Export debug triggers as an extension Himanshu Chauhan
2024-02-29 13:37 ` [PATCH v3 1/2] target/riscv: Mark debug property as deprecated Himanshu Chauhan
2024-02-29 13:37 ` [PATCH v3 2/2] target/riscv: Export sdtrig in ISA string Himanshu Chauhan
2024-02-29 15:12 ` [PATCH v3 0/2] Export debug triggers as an extension Andrew Jones
2024-02-29 16:19   ` Anup Patel
2024-03-06  3:33     ` Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).