From: Dmitry Selyutin Date: Sat, 17 Sep 2022 12:44:28 +0000 (+0300) Subject: power_insn: fix mapping bits accessors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5aa12f59f6cc09d007f5f8cb58d372e5cdd8048b;p=openpower-isa.git power_insn: fix mapping bits accessors --- diff --git a/src/openpower/decoder/power_fields.py b/src/openpower/decoder/power_fields.py index 1212687a..c1a2d483 100644 --- a/src/openpower/decoder/power_fields.py +++ b/src/openpower/decoder/power_fields.py @@ -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]