You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix mret and mnret instructions to support correctly Smdbltrp (MDT bit) 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 <quic_ayosher@quicinc.com>
* MNRET instruction: improving long name and description to match Smrnmi and Smdbltrp extensions documentation
Signed-off-by: Albert Yosher <quic_ayosher@quicinc.com>
---------
Signed-off-by: Albert Yosher <quic_ayosher@quicinc.com>
Co-authored-by: Derek Hower <134728312+dhower-qc@users.noreply.github.com>
0 commit comments