[PATCH 4/5] lib: sbi_trap: Set hypervisor CSRs for HS-mode

Andrew Jones ajones at ventanamicro.com
Thu Aug 4 00:52:14 PDT 2022


On Thu, Aug 04, 2022 at 11:17:05AM +0800, Vivian Wang wrote:
> The hypervisor CSRs hstatus, htval, htinst should always be set if the
> trap is to be taken in HS-mode, regardless of which mode it came from.
> 
> Signed-off-by: Vivian Wang <dramforever at live.com>
> ---
>  lib/sbi/sbi_trap.c | 12 +++++++-----
>  1 file changed, 7 insertions(+), 5 deletions(-)
>

Reviewed-by: Andrew Jones <ajones at ventanamicro.com>



More information about the opensbi mailing list