Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(csr): htinst/mtinst are always written 0 when trap in XiangShan
Currently, XiangShan only support writing 0 to htinst & mtinst CSRs when trap occurs. To align with XiangShan, this patch wraps the update of htinst & mtinst CSRs in take_trap function.
- Loading branch information