add new svstep mode setting up pack/unpack
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Sep 2022 19:18:49 +0000 (20:18 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Sep 2022 19:20:11 +0000 (20:20 +0100)
in simplev.mdwn pseudocode

openpower/isa/simplev.mdwn

index 8572d690cacd0991afc3fa658d991d56765b5be1..111212f865a1c3eda550e82673788655ec27b63f 100644 (file)
@@ -10,8 +10,14 @@ SVL-Form
 
 Pseudo-code:
 
-    step <- SVSTATE_NEXT(SVi, vf)
-    RT <- [0]*57 || step
+    if SVi[3:4] = 0b11 then
+        # store subvl, pack and unpack in SVSTATE
+        SVSTATE[53] <- SVi[5]
+        SVSTATE[54] <- SVi[6]
+        RT <- [0]*62 || SVSTATE[53:54]
+    else
+        step <- SVSTATE_NEXT(SVi, vf)
+        RT <- [0]*57 || step
 
 Special Registers Altered: