From: Dmitry Selyutin Date: Sun, 6 Nov 2022 09:29:55 +0000 (+0300) Subject: power_insn: return None for unknown insn names X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a35f4c00aaa2ae598f26ebd59de73114edb1ae68;p=openpower-isa.git power_insn: return None for unknown insn names --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 08db9529..5d5be5d7 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -2423,6 +2423,6 @@ class Database: return record # hunt by string instead elif isinstance(key, str): - return self.__names[key] + return self.__names.get(key) return None