-
Notifications
You must be signed in to change notification settings - Fork 78
Fix mret and mnret instructions #588
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
Conversation
ThinkOpenly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One area of this project we're trying to improve is the commit messages. I'd appreciate it (and it would certainly help me review an area with which I'm not familiar) if the commit message included:
- description of the issue with the current code
- explanation of what was changed, and how that fixes the issue
…t) and MPRV bit Before his fix IDL code reset mstatus.MPRV bit only in case if S mode is implemented for both mret and mnret. This seems wrong, since spec states that MPRV should be reset by both mret and mnret for case when mode processor is returning is different from Machine mode (2b'11). As well, Smdbltrp spec requires that such case (returning to non-machine mode), the mnret instruction should reset MDT bit. According to the spec mnret instruction should set mnstatus.NMIE=1. Also, mnret should use mnstatus.MNPP bit field for previous mode storage. Signed-off-by: Albert Yosher <[email protected]>
…i and Smdbltrp extensions documentation Signed-off-by: Albert Yosher <[email protected]>
|
@ThinkOpenly , Please review updated changes and approve them if you thing that I did the requested changes. |
Add support for Smdbltrp (MDT bit) and MPRV bit