summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVivian Wang <[email protected]>2022-08-04 22:32:31 +0800
committerAnup Patel <[email protected]>2022-08-22 08:50:23 +0530
commita69eb6cc65a16f26455bfb5b7cab768ac891bc1d (patch)
tree6d677f435335bd5912494b704fac50f3971df5b3 /include
parent5a0ca098f176fd5b84d311e82543a05aaab8cafb (diff)
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: Vivian Wang <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions