power_insn: fix mapping bits accessors
authorDmitry Selyutin <ghostmansd@gmail.com>
Sat, 17 Sep 2022 12:44:28 +0000 (15:44 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 17 Sep 2022 16:44:16 +0000 (17:44 +0100)
src/openpower/decoder/power_fields.py

index 1212687a940ab4a3733ed5ef769c8f5d76d7d9b6..c1a2d483115189dc155e2f555ee578163ae773af 100644 (file)
@@ -276,7 +276,7 @@ class Mapping(Reference, metaclass=MappingMeta):
 
     def __getitem__(self, key):
         if isinstance(key, (int, slice, list, tuple, range)):
-            return self.storage[key]
+            return self["_"][key]
 
         return self.__members[key]