mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 02:21:38 +00:00
If writing access is not allowed, it will raise a trap, but we increase the number of allowed bits to 32 in this approach, which isn't right. There must be a write of 0. Move the operation of increasing allowed bits into the 'if' condition. Signed-off-by: Evgenii Prokopiev <eestelle0626@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260910182026.6776-1-eestelle0626@gmail.com Signed-off-by: Anup Patel <anup@brainfault.org>