lib: sbi: Detect support of debug triggers

Detect if debug triggers, sdtrig extension, is supported
by the CPU. The support is detected by access traps and
ISA string parsing.

Signed-off-by: Himanshu Chauhan <hchauhan@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Himanshu Chauhan authored and Anup Patel committed 2024-01-10 09:43:37 +05:30
1 parent 24997697ae
commit 40dac6bcfe
2 files changed
+6

No files matched your search

+2
View File
@@ -53,6 +53,8 @@ enum sbi_hart_extensions {
SBI_HART_EXT_ZICBOM,
/** Hart has Svpbmt extension */
SBI_HART_EXT_SVPBMT,
/** Hart has debug trigger extension */
SBI_HART_EXT_SDTRIG,
/** Maximum index of Hart extension */
SBI_HART_EXT_MAX,