From 9f10757fab31ca82ad16f128c14549508e2baf24 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 24 Jul 2024 18:03:03 -0700 Subject: [PATCH] Add missing "else" in SSAMOSWAP pseudocode (#1560) 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 --- src/unpriv-cfi.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unpriv-cfi.adoc b/src/unpriv-cfi.adoc index a7007150b..ed17e74e7 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