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

lib: sbi: Fixup tinst for exceptions in sbi_misaligned_*()

If there is an exception while emulating a misaligned load/store, fixup
uptrap.tinst before redirecting. Otherwise, HS-mode software may receive
an htinst describing the lbu/sb instruction that faulted during
emulation[1].

[1]: https://github.com/riscv-software-src/opensbi/issues/258



Signed-off-by: default avatardramforever <dramforever@live.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 551c70c0
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