mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
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>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user