aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2024-07-24 18:03:03 -0700
committerGitHub <noreply@github.com>2024-07-24 18:03:03 -0700
commit9f10757fab31ca82ad16f128c14549508e2baf24 (patch)
tree8259d61f93464a614102ec627ebddd3a914200ea /src
parentb68cf27cd9da31e0579382cb51969f954a5181a6 (diff)
downloadriscv-isa-manual-9f10757fab31ca82ad16f128c14549508e2baf24.zip
riscv-isa-manual-9f10757fab31ca82ad16f128c14549508e2baf24.tar.gz
riscv-isa-manual-9f10757fab31ca82ad16f128c14549508e2baf24.tar.bz2
Add missing "else" in SSAMOSWAP pseudocode (#1560)riscv-isa-release-b68cf27-2024-07-25riscv-isa-release-9f10757-2024-07-25
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
Diffstat (limited to 'src')
-rw-r--r--src/unpriv-cfi.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unpriv-cfi.adoc b/src/unpriv-cfi.adoc
index a700715..ed17e74 100644
--- a/src/unpriv-cfi.adoc
+++ b/src/unpriv-cfi.adoc
@@ -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
@@ -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