From 8619acccf6f5442aeb4bfe47c9ef9162727897e6 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 7 Oct 2022 15:14:19 +0300 Subject: [PATCH] power_insn: do not allow default records --- src/openpower/decoder/power_insn.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) -- 2.30.2