From: Luke Kenneth Casson Leighton Date: Sat, 3 Sep 2022 18:38:53 +0000 (+0100) Subject: create list of opcodes by dict entry X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c5f704308b1630a18d96bf6fdd1427020b51bea;p=openpower-isa.git create list of opcodes by dict entry --- diff --git a/src/openpower/decoder/power_table.py b/src/openpower/decoder/power_table.py index c87af159..356c0164 100644 --- a/src/openpower/decoder/power_table.py +++ b/src/openpower/decoder/power_table.py @@ -55,7 +55,9 @@ def do_table(fname, insns, section, divpoint): opcode = [opcode] for op in opcode: print ("op", insn.name, op) - opcode_per_insn[insn.name] = opcode + if insn.name not in opcode_per_insn: + opcode_per_insn[insn.name] = [] + opcode_per_insn[insn.name] += opcode maxnamelen = 0 for i in range(1<