summaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_math.c
diff options
context:
space:
mode:
authordramforever <dramforever@live.com>2022-06-12 08:57:37 +0300
committerAnup Patel <anup@brainfault.org>2022-06-13 08:32:49 +0300
commitadc3388d76af18487d8ba4a53a1d1e83655435f3 (patch)
treedd439e726ea4330cc2123049538d9dcc8b09d010 /lib/sbi/sbi_math.c
parentcb8271c8e43e3c317436b7377c4fa0ac669f8fb5 (diff)
downloadopensbi-adc3388d76af18487d8ba4a53a1d1e83655435f3.tar.xz
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: dramforever <dramforever@live.com> Reviewed-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/sbi/sbi_math.c')
0 files changed, 0 insertions, 0 deletions