create list of opcodes by dict entry
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 3 Sep 2022 18:38:53 +0000 (19:38 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 3 Sep 2022 18:38:53 +0000 (19:38 +0100)
src/openpower/decoder/power_table.py

index c87af159bfd9ef7ab415aad1c651d078271eff51..356c01643dcdac1671c45e56a5d2ef1e37fb7734 100644 (file)
@@ -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<<bitlen):