Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NMI spec updates: removed UNMI, added new mnie bit to mnstatus #2904

Merged
merged 3 commits into from Nov 12, 2021

Conversation

ingallsj
Copy link
Contributor

Related issue:

Type of change: bug report | feature request | other enhancement

Impact: API modification

Development Phase: implementation

Release Notes
The NMI arch spec is being prepared for submission to RISC-V International. As part of that, the UNMI feature has been removed from it. External IO unmi_* were removed and all internal implementation referring to unmi was removed. Most changes are in the CSR modules where NMI is processed.

The latest NMI spec has added a bit mnie (not nmie) to mnstatus. This bit reflects the internal rnmie state. rnmie is set at reset, is cleared when an NMI is taken, and is set by executing mnret at the end of the NMI handler (unchanged by this PR). Now rnmie can also be read and set by software so that nested NMIs can be processed. rnmie cannot be cleared by software, per the spec.

The mnstatus register read value was using io.status.mpp (= mstatus.mpp) instead of mnstatus.mpp.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 10, 2021

CLA Signed

The committers are authorized under a signed CLA.

@ingallsj ingallsj changed the title Nmi rm unmi mnstatus NMI spec updates: removed UNMI, added new mnie bit to mnstatus Nov 10, 2021
@ingallsj ingallsj merged commit 400f995 into master Nov 12, 2021
@ingallsj ingallsj deleted the nmi_rm-unmi_mnstatus branch November 12, 2021 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants