diff options
| author | Dave Patel <[email protected]> | 2026-05-18 14:00:22 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2026-05-18 14:02:28 +0530 |
| commit | 718e1d194f5a41c657dfe094392abdeb02356680 (patch) | |
| tree | 8b2d676c1b253bbe34e1119a690c705ba2fa2b95 /scripts | |
| parent | 21461156da2be4633f53a60a77fe70da1a517db4 (diff) | |
lib: sbi: Add floating-point context save/restore support.
Add support for saving and restoring RISC-V floating-point (F/D) extension
state in OpenSBI. This introduces a floating-point context structure and
helper routines to perform full context save and restore.
The floating-point context includes storage for all 32 FPi registers (f0–f31)
along with the fcsr control and status register. The register state is saved
and restored using double-precision load/store instructions (fsd/fld), and
single-precision load/store instructions (fsw/flw) on an RV64 system with
F and D-extension support.
The implementation follows an eager context switching model where the entire
FP state is saved and restored on every context switch. This avoids the need
for trap-based lazy management and keeps the design simple and deterministic.
Signed-off-by: Dave Patel <[email protected]>
Signed-off-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
