power_insn: do not allow default records
authorDmitry Selyutin <ghostmansd@gmail.com>
Fri, 7 Oct 2022 12:14:19 +0000 (15:14 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:15 +0000 (19:51 +0100)
src/openpower/decoder/power_insn.py

index e086a83254446ceae9ab0d731bbc9ba833f10739..ca90eb8032cf0f94769a5133c003d947d9be1c84 100644 (file)
@@ -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)