qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Export debug triggers as an extension
@ 2024-01-17 14:24 Himanshu Chauhan
  2024-01-17 14:24 ` [PATCH v2 1/2] target/riscv: Convert sdtrig functionality from property to " Himanshu Chauhan
  2024-01-17 14:24 ` [PATCH v2 2/2] target/riscv: Export sdtrig in ISA string Himanshu Chauhan
  0 siblings, 2 replies; 7+ messages in thread
From: Himanshu Chauhan @ 2024-01-17 14:24 UTC (permalink / raw)
  To: qemu-riscv, qemu-devel; +Cc: Himanshu Chauhan

All the CPUs may or may not implement the debug trigger (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 x-sdtrig=<true/false> option. It is
turned on by default.

"x-sdtrig" is concatenated to ISA string when it is enabled.
Like so:
rv64imafdch_zicbom_*_x-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

Himanshu Chauhan (2):
  target/riscv: Convert sdtrig functionality from property to an
    extension
  target/riscv: Export sdtrig in ISA string

 target/riscv/cpu.c        | 8 ++++----
 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, 8 insertions(+), 8 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2024-01-22  5:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-17 14:24 [PATCH v2 0/2] Export debug triggers as an extension Himanshu Chauhan
2024-01-17 14:24 ` [PATCH v2 1/2] target/riscv: Convert sdtrig functionality from property to " Himanshu Chauhan
2024-01-17 19:52   ` Daniel Henrique Barboza
2024-01-19  3:14   ` Anup Patel
2024-01-22  5:36   ` Alistair Francis
2024-01-17 14:24 ` [PATCH v2 2/2] target/riscv: Export sdtrig in ISA string Himanshu Chauhan
2024-01-18  7:39   ` Andrew Jones

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