Commit adc3388d authored by dramforever's avatar dramforever Committed by Anup Patel
Browse files

lib: sbi_trap: Redirect exception based on hedeleg



HS-mode software can choose what exceptions to delegate to VS-mode using
the hedeleg CSR. Synthetic VS/VU-mode exceptions should also honor
hedeleg. They should be redirected to VS-mode if and only if delegated
by HS-mode.

Signed-off-by: default avatardramforever <dramforever@live.com>
Reviewed-by: default avatarXiang W <wxjstz@126.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent cb8271c8
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