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

add register layout for mnstatus #214

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/cfi_forward.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,33 @@ holds the previous `ELP`, and is updated as specified in <<FORWARD_TRAPS>>. The
* 0 - `NO_LP_EXPECTED` - no landing pad instruction expected.
* 1 - `LP_EXPECTED` - a landing pad instruction is expected.

==== Resumable NMI Status Register (`mnstatus`)

.Resumable NMI Status (`mnstatus`) when `MXLEN=64`
[wavedrom, ,svg]
....
{reg: [
{bits: 3, name: 'WPRI'},
{bits: 1, name: 'NMIE'},
{bits: 3, name: 'WPRI'},
{bits: 1, name: 'MNPV'},
{bits: 1, name: 'WPRI'},
{bits: 1, name: 'MNPELP'},
{bits: 1, name: 'WPRI'},
{bits: 2, name: 'MNPP'},
{bits: 51, name: 'WPRI'},
], config:{lanes: 4, hspace:1024}}
....

The Zicfilp extension introduces the `MNPELP` (bit 9) in `mnstatus`. The
`MNPELP` field holds the previous `ELP`, and is updated as specified in
<<FORWARD_TRAPS>>. The `MNPELP` field is encoded as follows:

* 0 - `NO_LP_EXPECTED` - no landing pad instruction expected.
* 1 - `LP_EXPECTED` - a landing pad instruction is expected.

<<<

[[FCIFIACT]]
=== Landing-Pad-Enabled (LPE) State

Expand Down
Loading