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 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 Himanshu Chauhan (2): target/riscv: Export sdtrig as an extension and ISA string target/riscv: Raise an exception when sdtrig is turned off target/riscv/cpu.c | 2 ++ target/riscv/cpu_cfg.h | 1 + target/riscv/csr.c | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+) -- 2.34.1