[PATCH 0/2] Not to clear all the bits of mip

Nick Hu nick.hu at sifive.com
Tue Jan 17 00:14:26 PST 2023


In generic behavior of QEMU, if we clear the mip.SEIP and the pendings of
PLIC still exist, the QEMU may not set the mip.SEIP back immediately. So
interrupts won't be handled anymore until the next new device interrupt
arrived. We should only clear the SSIP and STIP which set by SW. The rest
of the bits should be decided by HW.

Nick Hu (2):
  firmware: Not to clear all the MIP
  lib: sbi_hsm: Use csr_set to restore the MIP

 firmware/fw_base.S | 10 ++++++++--
 lib/sbi/sbi_hsm.c  |  2 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

-- 
2.34.1




More information about the opensbi mailing list