summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHimanshu Chauhan <[email protected]>2024-01-09 22:30:16 +0530
committerAnup Patel <[email protected]>2024-01-10 09:43:37 +0530
commit40dac6bcfe7e01fb12915e0bbf8d175df06c8170 (patch)
treef6a0f7b7335dc166c4cbbbe7d50fc2cdc3091fdc /include
parent24997697aed9856f2a7e6ea73802e4939010660e (diff)
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 <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_hart.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h
index 47be251d..10dc3df5 100644
--- a/include/sbi/sbi_hart.h
+++ b/include/sbi/sbi_hart.h
@@ -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,