diff options
| author | Himanshu Chauhan <hchauhan@ventanamicro.com> | 2024-01-09 22:30:16 +0530 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-01-10 09:43:37 +0530 |
| commit | 40dac6bcfe7e01fb12915e0bbf8d175df06c8170 (patch) | |
| tree | f6a0f7b7335dc166c4cbbbe7d50fc2cdc3091fdc /include | |
| parent | 24997697aed9856f2a7e6ea73802e4939010660e (diff) | |
| download | opensbi-40dac6bcfe7e01fb12915e0bbf8d175df06c8170.zip opensbi-40dac6bcfe7e01fb12915e0bbf8d175df06c8170.tar.gz opensbi-40dac6bcfe7e01fb12915e0bbf8d175df06c8170.tar.bz2 | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_hart.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h index 47be251..10dc3df 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, |
