Skip to content

Commit

Permalink
update pseudocode to match expected behavior of not requiring alignme…
Browse files Browse the repository at this point in the history
…nt when ELP = NO_LP_EXPECTED
  • Loading branch information
ved-rivos committed Oct 30, 2023
1 parent 7911e55 commit f781c46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cfi_forward.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -520,12 +520,12 @@ The operation of the `LPAD` instruction is as follows:
.`LPAD` operation
[listing]
----
if (xLPE != 0)
// If PC not 4-byte aligned then software integrity fault
if (xLPE == 1 && ELP == LP_EXPECTED)
// If PC not 4-byte aligned then software-check exception
if pc[1:0] != 0
Cause software-check exception
// If landing pad label not matched -> software integrity fault
else if (inst.LPL != x7[31:12] && inst.LPL != 0 && ELP == LP_EXPECTED)
// If landing pad label not matched -> software-check exception
else if (inst.LPL != x7[31:12] && inst.LPL != 0)
Cause software-check exception
else
ELP = NO_LP_EXPECTED
Expand Down

0 comments on commit f781c46

Please sign in to comment.