Commit 84d15f4f authored by Nick Hu's avatar Nick Hu Committed by Anup Patel
Browse files

lib: sbi_hsm: Use csr_set to restore the MIP



If we use the csr_write to restore the MIP, we may clear the SEIP.
In generic behavior of QEMU, if the pending bits of PLIC are set and we
clear the SEIP, the QEMU may not set it back immediately. It may cause
the interrupts won't be handled anymore until the new interrupts arrived
and QEMU set the bits back.

Signed-off-by: default avatarNick Hu <nick.hu@sifive.com>
Signed-off-by: default avatarJim Shu <jim.shu@sifive.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 8050081f
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