power_insn: do not allow default records
authorDmitry Selyutin <ghostmansd@gmail.com>
Fri, 7 Oct 2022 12:14:19 +0000 (15:14 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Fri, 14 Oct 2022 18:52:03 +0000 (21:52 +0300)
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)