From: Dmitry Selyutin Date: Fri, 7 Oct 2022 12:14:19 +0000 (+0300) Subject: power_insn: do not allow default records X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48a772388e269eeafb9f8d555e65e73552d66605;p=openpower-isa.git power_insn: do not allow default records --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index e086a832..ca90eb80 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -2193,9 +2193,10 @@ class PPCDatabase: records[name].add(insn) sections[name] = section - for (name, multirecord) in sorted(records.items()): - multirecord = PPCMultiRecord(sorted(multirecord)) - records[name] = multirecord + items = sorted(records.items()) + records = {} + for (name, multirecord) in items: + records[name] = PPCMultiRecord(sorted(multirecord)) def exact_match(name): record = records.get(name)