From 7bc9354a25cc84032396ebcc88fdb3bf7be7da3f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 18 Jul 2022 14:58:49 +0100 Subject: [PATCH] add substep getter/setter to SVP64State --- src/openpower/decoder/isa/svstate.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/openpower/decoder/isa/svstate.py b/src/openpower/decoder/isa/svstate.py index 68c2a8b2..86b17f6b 100644 --- a/src/openpower/decoder/isa/svstate.py +++ b/src/openpower/decoder/isa/svstate.py @@ -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) -- 2.30.2