lib: sbi_trap: Workaroud for cpu still using i-utlb when into m mode

This commit is contained in:
xiaoguang.xing
2023-04-04 17:17:46 +08:00
parent 0e87f899c3
commit be6e558f66
2 changed files with 2 additions and 4 deletions

View File

@@ -757,6 +757,8 @@ memcmp:
.globl _trap_handler
.globl _trap_exit
_trap_handler:
sfence.vma
TRAP_SAVE_AND_SETUP_SP_T0
TRAP_SAVE_MEPC_MSTATUS 0