lib: sbi: sse: handle missing writable attributes
authorClément Léger <cleger@rivosinc.com>
Thu, 16 May 2024 12:30:28 +0000 (14:30 +0200)
committerAnup Patel <anup@brainfault.org>
Thu, 23 May 2024 05:23:02 +0000 (10:53 +0530)
commitae5ef1848d8404e1acdaed5dc460dd1bf2d33140
tree9482a87e382fb901f696fbf4e5cd24ae64193181
parent858754a54470ad0dbbced7838b17054ccd3b96de
lib: sbi: sse: handle missing writable attributes

The spec states that a6, a7, flags and sepc are writable but the
implementation was not allowing that. Add support for these 4 writable
attributes.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_sse.c