comments in SVP64RMFields
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 21 Feb 2021 12:58:19 +0000 (12:58 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 21 Feb 2021 13:08:39 +0000 (13:08 +0000)
src/soc/decoder/isa/caller.py

index 08deb7cf837075708323c06b09ba05d5738ad72d..ccdbff1484797c070fc9c93f3165708f1acddf27 100644 (file)
@@ -250,17 +250,19 @@ class SVP64RMFields:
         self.ewsrc = FieldSelectableInt(self.spr, tuple(range(6,8)))
         self.subvl = FieldSelectableInt(self.spr, tuple(range(8,10)))
         self.extra = FieldSelectableInt(self.spr, tuple(range(10,19)))
+        self.mode = FieldSelectableInt(self.spr, tuple(range(19,24)))
+        # these cover the same extra field, split into parts as EXTRA2
         self.extra2 = list(range(4))
         self.extra2[0] = FieldSelectableInt(self.spr, tuple(range(10,12)))
         self.extra2[1] = FieldSelectableInt(self.spr, tuple(range(12,14)))
         self.extra2[2] = FieldSelectableInt(self.spr, tuple(range(14,16)))
         self.extra2[3] = FieldSelectableInt(self.spr, tuple(range(16,18)))
         self.smask = FieldSelectableInt(self.spr, tuple(range(16,19)))
+        # and here as well, but EXTRA3
         self.extra3 = list(range(3))
         self.extra3[0] = FieldSelectableInt(self.spr, tuple(range(10,13)))
         self.extra3[1] = FieldSelectableInt(self.spr, tuple(range(13,16)))
         self.extra3[2] = FieldSelectableInt(self.spr, tuple(range(16,19)))
-        self.mode = FieldSelectableInt(self.spr, tuple(range(19,24)))
 
 
 SVP64RM_MMODE_SIZE = len(SVP64RMFields().mmode.br)