Skip to content

Commit

Permalink
Add missing "else" in SSAMOSWAP pseudocode (riscv#1560)
Browse files Browse the repository at this point in the history
This doesn't change the meaning of the pseudocode because "raise" is presumably
a terminal statement, but it makes the code easier to read.

h/t @tsaiyenting
  • Loading branch information
aswaterman authored Jul 25, 2024
1 parent b68cf27 commit 9f10757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unpriv-cfi.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ data values.
----
if privilege_mode != M && menvcfg.SSE == 0
raise illegal-instruction exception
if S-mode not implemented
else if S-mode not implemented
raise illegal-instruction exception
else if privilege_mode == U && senvcfg.SSE == 0
raise illegal-instruction exception
Expand All @@ -797,7 +797,7 @@ address in `rs1`.
----
if privilege_mode != M && menvcfg.SSE == 0
raise illegal-instruction exception
if S-mode not implemented
else if S-mode not implemented
raise illegal-instruction exception
else if privilege_mode == U && senvcfg.SSE == 0
raise illegal-instruction exception
Expand Down

0 comments on commit 9f10757

Please sign in to comment.