Commit a69eb6cc authored by Vivian Wang's avatar Vivian Wang Committed by Anup Patel
Browse files

lib: sbi_trap: Set hstatus.GVA when going to HS-mode



The privileged spec specifies that on a trap to HS-mode, hstatus.GVA
should be set to 1 if stval is written with a guest virtual address, and
to 0 otherwise. Implement this by setting hstatus.GVA to trap->gva when
redirecting traps to HS-mode.

Signed-off-by: default avatarVivian Wang <dramforever@live.com>
Reviewed-by: default avatarAndrew Jones <ajones@ventanamicro.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 5a0ca098
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment