OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] zicfilp and zicfiss support in opensbi
@ 2024-08-21 23:55 Deepak Gupta
  2024-08-21 23:55 ` [PATCH 1/3] include: adding support for Zicfilp / Zicfiss encodings Deepak Gupta
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Deepak Gupta @ 2024-08-21 23:55 UTC (permalink / raw)
  To: opensbi

I had sent opensbi patches for zicfilp and zicfiss support a while ago.
Since it was long time ago and specifications are ratified now, so
rebooting the patch series to version 1.

These patches to below things

- Add newly defined bits in existing CSRs
	* enabling bit in menvcfg
	* expected landing pad bit in mstatus for M and S
- Add new exception cause code and its delegation to S
	* software check exception is a new exception and is raised
	when control flow violation is detected by CPU
- Detection and enabling of zicfilp and zicfiss
	* zicfilp is detected by presence of MSTATUS_MPELP bit in mstatus
	* zicfiss is detected if CSR_SSP exists
	* zicfilp for S is not enabled by default. It is expected the S
	mode software will request a SBI call to enable it (via FWFT extn)
	* zicfiss is enabled by default for S mode because S mode can
	leverage it only if S mode is compiled with zicfiss support

Deepak Gupta (3):
  include: adding support for Zicfilp / Zicfiss encodings
  lib: sbi: Zicfilp/Zicfiss detection and elp cfi state reflect back in
    status
  lib: sbi: sw check exception delegation

 include/sbi/riscv_encoding.h |  6 ++++++
 include/sbi/sbi_hart.h       |  3 +++
 lib/sbi/sbi_hart.c           | 31 +++++++++++++++++++++++++++++++
 lib/sbi/sbi_trap.c           | 16 ++++++++++++++++
 4 files changed, 56 insertions(+)

-- 
2.44.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-08-22  6:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-21 23:55 [PATCH 0/3] zicfilp and zicfiss support in opensbi Deepak Gupta
2024-08-21 23:55 ` [PATCH 1/3] include: adding support for Zicfilp / Zicfiss encodings Deepak Gupta
2024-08-22  0:03   ` Samuel Holland
2024-08-21 23:55 ` [PATCH 2/3] lib: sbi: Zicfilp/Zicfiss detection and elp cfi state reflect back in status Deepak Gupta
2024-08-22  0:32   ` Samuel Holland
2024-08-22  6:37     ` Deepak Gupta
2024-08-21 23:55 ` [PATCH 3/3] lib: sbi: sw check exception delegation Deepak Gupta
2024-08-22  0:36   ` Samuel Holland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox