aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDeepak Gupta <debug@rivosinc.com>2024-09-16 11:23:55 -0700
committerAnup Patel <anup@brainfault.org>2024-09-23 18:58:04 +0530
commitc0804ed49a6ef1d2b757a97baf3f802fd98ae517 (patch)
tree35132ebb2eeee738d4b1539ce8f4ab4fc4b0c4bb /include
parent6758a756c4185d821611db58b3e839ac70eaba12 (diff)
downloadopensbi-c0804ed49a6ef1d2b757a97baf3f802fd98ae517.zip
opensbi-c0804ed49a6ef1d2b757a97baf3f802fd98ae517.tar.gz
opensbi-c0804ed49a6ef1d2b757a97baf3f802fd98ae517.tar.bz2
lib: sbi: add zicfilp/zicfiss and elp cfi state reflect back in status
This patch adds support to check for zicfilp / zicfiss extension. zicfilp record status of hart's ELP state in *status csr. Missing landing pad sets MPELP in mstatus. When SBI is redirecting back to S/VS/HS, SPELP is set in sstatus/vsstatus. Signed-off-by: Deepak Gupta <debug@rivosinc.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_hart.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h
index 32545f4..22d8327 100644
--- a/include/sbi/sbi_hart.h
+++ b/include/sbi/sbi_hart.h
@@ -69,6 +69,10 @@ enum sbi_hart_extensions {
SBI_HART_EXT_SVADU,
/** Hart has Smnpm extension */
SBI_HART_EXT_SMNPM,
+ /** HART has zicfilp extension */
+ SBI_HART_EXT_ZICFILP,
+ /** HART has zicfiss extension */
+ SBI_HART_EXT_ZICFISS,
/** Maximum index of Hart extension */
SBI_HART_EXT_MAX,