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=1b93c8452b10cb52e3e53563a28e09d445df890b;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