Commit 9d56961b authored by Georg Kotheimer's avatar Georg Kotheimer Committed by Anup Patel
Browse files

lib: sbi_trap: Fix hstatus.SPVP update in sbi_trap_redirect()



When redirecting from VS/VU-mode to HS-mode, hstatus.SPVP was set
to the value of mstatus.SPP, as according to the specification both
flags should be set to the same value.
However, the assignment of SPVP takes place before SPP itself is
updated, which results in SPVP having an outdated value.

Signed-off-by: default avatarGeorg Kotheimer <georg.kotheimer@tu-dresden.de>
Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
parent 4b18a2ac
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