From: Dmitry Selyutin Date: Sun, 11 Jun 2023 08:13:11 +0000 (+0300) Subject: insndb/core: fix operands iteration X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84019f9487c696d066087cf7de7d049f883c2bd3;p=openpower-isa.git insndb/core: fix operands iteration --- diff --git a/src/openpower/insndb/core.py b/src/openpower/insndb/core.py index 973aac00..1388fa21 100644 --- a/src/openpower/insndb/core.py +++ b/src/openpower/insndb/core.py @@ -884,7 +884,7 @@ class Operands(Dict, datatype=object): @staticmethod def filter(cls): - return lambda pair: isinstance(pair[0], cls) + return lambda pair: issubclass(pair[0], cls) @cached_property def static(self):