add substep getter/setter to SVP64State
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 18 Jul 2022 13:58:49 +0000 (14:58 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 18 Jul 2022 13:58:49 +0000 (14:58 +0100)
src/openpower/decoder/isa/svstate.py

index 68c2a8b2c9fea8ddd51fa6cd7e99afb573c568e4..86b17f6b2b5a9bce3e3b5def695f89876504085c 100644 (file)
@@ -55,6 +55,14 @@ class SVP64State(SelectableInt):
     def srcstep(self, value):
         self.fsi['srcstep'].eq(value)
 
+    @property
+    def substep(self):
+        return self.fsi['substep'].asint(msb0=True)
+
+    @substep.setter
+    def substep(self, value):
+        self.fsi['substep'].eq(value)
+
     @property
     def subvl(self):
         return self.fsi['subvl'].asint(msb0=True)