From: Dmitry Selyutin Date: Sun, 4 Sep 2022 12:10:56 +0000 (+0300) Subject: power_insn: try exact name matching first X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cac416fd956a7349250bc624faf5a7c4ce5c07a8;p=openpower-isa.git power_insn: try exact name matching first --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 34ae8895..3a3a6625 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -1380,8 +1380,11 @@ class PPCDatabase: for (section, records) in self.__db.items(): for record in records: - if (exact_match(key, record) or - Rc_match(key, record) or + if exact_match(key, record): + return (section, record) + + for record in records: + if (Rc_match(key, record) or LK_match(key, record) or AA_match(key, record)): return (section, record)