(no commit message)
authorlkcl <lkcl@web>
Tue, 28 Jun 2022 04:33:57 +0000 (05:33 +0100)
committerIkiWiki <ikiwiki.info>
Tue, 28 Jun 2022 04:33:57 +0000 (05:33 +0100)
openpower/sv/branches.mdwn

index cc3030ea19f1a1bedde77f6f5dd4dfc41419e6e2..fb9b9da34c7b32f4a38f9f4fa39101990f6a919a 100644 (file)
@@ -572,11 +572,14 @@ else
     if SVRMmode.VLI then SVSTATE.VL = srcstep+1
     else                 SVSTATE.VL = srcstep
   lr_ok <- LK
+  svlr_ok <- SVRMmode.SL
   if ctr_ok & cond_ok then
     if AA then NIA <-iea EXTS(BD || 0b00)
     else       NIA <-iea CIA + EXTS(BD || 0b00)
     if SVRMmode.LRu then lr_ok <- ¬lr_ok
-  if lr_ok then LR <-iea CIA + 4
+    if SVRMmode.SLu then svlr_ok <- ¬svlr_ok
+  if lr_ok   then LR   <-iea CIA + 4
+  if svlr_ok then SVLR <- SVSTATE
 ```
 
 Below is the pseudocode for SVP64 Branches, which is a little less