From 5aa12f59f6cc09d007f5f8cb58d372e5cdd8048b Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 17 Sep 2022 15:44:28 +0300 Subject: [PATCH] power_insn: fix mapping bits accessors --- src/openpower/decoder/power_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.30.2