isa.caller: support whole integer pseudo-field
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Tue, 19 Apr 2022 17:43:41 +0000 (17:43 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Tue, 19 Apr 2022 17:43:41 +0000 (17:43 +0000)
src/openpower/decoder/isa/caller.py

index 4838de0c5c3e9b847e5a1fa96f397d8bfc4ceb56..a55023ef329da9772e46a33bbb7f6cd476527669 100644 (file)
@@ -263,6 +263,7 @@ class SVP64RMFields(SelectableIntMapping):
     def __init__(self, value=0):
         self.spr = SelectableInt(value=value, bits=24)
         return super().__init__(si=self.spr, fields={
+            "spr": range(24),
             # SVP64 RM fields: see https://libre-soc.org/openpower/sv/svp64/
             "mmode": (0,),
             "mask": range(1, 4),
@@ -304,6 +305,7 @@ class SVP64PrefixFields(SelectableIntMapping):
     def __init__(self):
         self.insn = SelectableInt(0, 32)
         return super().__init__(si=self.insn, fields={
+            "insn": range(32),
             # 6 bit major opcode EXT001, 2 bits "identifying" (7, 9), 24 SV ReMap
             "major": range(0, 6),
             "pid": (7, 9),