opensbi/lib/sbi
Samuel Holland 4afb57c9eb lib: sbi_hsm: Save/restore menvcfg only when it exists
Attempting to access the menvcfg CSR raises an illegal instruction
exception on hardware which implements Sm1p11 or older.

Fixes: e9ee9678ba ("lib: sbi: fwft: add support for SBI_FWFT_PTE_AD_HW_UPDATING")
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
2024-07-24 10:42:46 +05:30
..
tests lib: tests: add math test suite 2024-07-23 10:17:51 +05:30
Kconfig lib: sbi: implement SBI FWFT extension 2024-06-19 18:15:28 +05:30
objects.mk Makefile: change to using .carray.c for carray files 2024-07-04 12:11:45 +05:30
riscv_asm.c lib: sbi: Add support for smcntrpmf 2023-08-18 14:50:38 +05:30
riscv_atomic.c lib: sbi: Replace __atomic_op_bit_ord with __atomic intrinsics 2023-12-08 14:06:40 +05:30
riscv_hardfp.S lib: Move sbi core library to lib/sbi 2019-06-19 09:48:51 +05:30
riscv_locks.c lib: sbi: Have spinlock checks return bool 2021-05-14 17:05:20 +05:30
sbi_bitmap.c lib: Simple bitmap library 2020-03-11 15:29:45 +05:30
sbi_bitops.c lib: fix compilation when strings.h is included 2022-02-04 11:04:19 +05:30
sbi_console.c lib: tests: Move tests to a separate directory 2024-03-19 11:20:40 +05:30
sbi_cppc.c lib: sbi: Implement SBI CPPC extension 2023-04-07 09:36:01 +05:30
sbi_dbtr.c lib: sbi: check incoming dbtr shmem address 2024-06-28 08:36:46 +05:30
sbi_domain.c sbi: sbi_domain_context: Add spinlock for updating domain assigned_harts 2024-05-07 20:11:30 +05:30
sbi_domain_context.c sbi: sbi_domain_context: Fix trap context for domain context switching 2024-06-13 19:21:27 +05:30
sbi_ecall.c lib: sbi: Pass trap context pointer to sbi_ecall_handler() 2024-03-19 11:31:39 +05:30
sbi_ecall_base.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_cppc.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_dbcn.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_dbtr.c lib: sbi: Implement SBI debug trigger extension 2024-01-10 10:55:50 +05:30
sbi_ecall_exts.carray lib: sbi_ecall: Generate extensions list with carray 2022-10-23 11:00:30 +05:30
sbi_ecall_fwft.c lib: sbi: implement SBI FWFT extension 2024-06-19 18:15:28 +05:30
sbi_ecall_hsm.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_ipi.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_legacy.c lib: sbi: Remove epc from struct sbi_trap_info 2024-03-19 11:31:16 +05:30
sbi_ecall_pmu.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_rfence.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_srst.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_sse.c lib: sbi: Implement SBI SSE extension 2024-04-05 15:49:02 +05:30
sbi_ecall_susp.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_time.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_vendor.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_emulate_csr.c lib: sbi_emulate_csr: Do not log illegal CSR accesses 2024-07-04 10:42:16 +05:30
sbi_expected_trap.S lib: sbi: Remove epc from struct sbi_trap_info 2024-03-19 11:31:16 +05:30
sbi_fifo.c treewide: Replace TRUE/FALSE with true/false 2023-01-06 17:26:35 +05:30
sbi_fwft.c lib: sbi: fwft: return SBI_EINVAL rather than SBI_ERR_INVALID_PARAM 2024-06-26 18:14:49 +05:30
sbi_hart.c lib: sbi: Add support for Svade and Svadu extensions 2024-06-18 16:41:32 +05:30
sbi_heap.c platform: recalculate heap size to support new tlb entry number 2023-12-11 09:23:24 +05:30
sbi_hfence.S lib: sbi: Fix GPA passed to __sbi_hfence_gvma_xyz() functions 2021-11-02 16:02:08 +05:30
sbi_hsm.c lib: sbi_hsm: Save/restore menvcfg only when it exists 2024-07-24 10:42:46 +05:30
sbi_illegal_insn.c lib: sbi: Simplify parameters of sbi_illegal_insn_handler() 2024-03-19 11:31:31 +05:30
sbi_init.c lib: sbi: add support for firmware features extension 2024-06-19 18:09:22 +05:30
sbi_ipi.c lib: sbi_ipi: Drop unnecessary ipi_process check 2023-12-18 19:26:35 +05:30
sbi_irqchip.c lib: sbi: Remove regs paramter of sbi_irqchip_process() 2024-03-19 11:31:33 +05:30
sbi_math.c lib: Create a separate math helper function file 2020-05-10 09:59:24 +05:30
sbi_platform.c lib: sbi: Remove sbi_platform_hart_index/invalid() functions 2023-09-24 11:39:30 +05:30
sbi_pmu.c lib: sbi: Add SSE support for PMU events 2024-04-05 17:09:39 +05:30
sbi_scratch.c lib: sbi: Remove sbi_scratch_last_hartid() macro 2023-09-24 11:41:54 +05:30
sbi_sse.c lib: sbi: sse: handle missing writable attributes 2024-05-23 10:53:02 +05:30
sbi_string.c lib: sbi: Fix sbi_strnlen wrong count decrement 2022-09-13 17:17:10 +05:30
sbi_system.c sbi: sbi_domain_context: Add spinlock for updating domain assigned_harts 2024-05-07 20:11:30 +05:30
sbi_timer.c lib: sbi: Add Zicntr as a HART ISA extension 2023-07-09 11:06:24 +05:30
sbi_tlb.c lib: sbi_tlb: Reduce size of struct sbi_tlb_info 2023-12-19 15:56:37 +05:30
sbi_trap.c lib: sbi: Add SSE support for PMU events 2024-04-05 17:09:39 +05:30
sbi_trap_ldst.c lib: sbi: Simplify parameters of misaligned and access fault handlers 2024-03-19 11:31:28 +05:30
sbi_unpriv.c lib: sbi: Remove unnecessary semicolon 2023-05-11 12:31:34 +05:30