expand SVi to 8 bits
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 13 Mar 2021 13:57:24 +0000 (13:57 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 13 Mar 2021 13:57:24 +0000 (13:57 +0000)
openpower/isa/simplev.mdwn
openpower/isatables/fields.text

index cada3b6ae0066c465ca360cab66476396d978ef3..d283db9661bfd0776e2dbdcef046f09fe61050ab 100644 (file)
@@ -10,13 +10,13 @@ Pseudo-code:
     VLimm <- SVi + 1
     if vs = 1 then
         if RA = 0 then
-            VL <- (RA)
+            VL <- (RA)[57:63]
         else
-            VL <- VLimm
+            VL <- VLimm[2:8]
     else
         VL <- SVSTATE[7:13]
     if ms = 1 then
-        MVL <- VLimm
+        MVL <- VLimm[2:8]
     else
         MVL <- SVSTATE[0:6]
     if VL > MVL then
@@ -24,7 +24,7 @@ Pseudo-code:
     SVSTATE[0:6] = MVL
     SVSTATE[7:13] = VL
     if RT != 0 then
-        RT <- VL
+        RT <- VL || [0] * 58
 
 Special Registers Altered:
 
index ea4f461e03d557f6bed4d3d683a1f3d6ae0c3d5f..c0bccb353bfd698ef7a7b9bb11785ecff8867c00 100644 (file)
          Field used by the Segment Register Manipulation
          instructions (see Book III).
          Formats: X
-    SVi (16:21)
+    SVi (16:23)
          Simple-V immediate field for setting VL or MVL
          Formats: SVL
     SX,S (28,6:10)