From: Luke Kenneth Casson Leighton Date: Sat, 3 Sep 2022 18:30:08 +0000 (+0100) Subject: use opcode directly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ede9773683c24b5762ecc731380e535692694f9f;p=openpower-isa.git use opcode directly --- diff --git a/src/openpower/decoder/power_table.py b/src/openpower/decoder/power_table.py index 63262e27..59f32005 100644 --- a/src/openpower/decoder/power_table.py +++ b/src/openpower/decoder/power_table.py @@ -47,9 +47,10 @@ def do_table(fname, insns, section, divpoint): # debug-print all opcodes first opcode_per_insn = {} for insn in insns: - fields = [] - fields += [(insn.ppc.opcode.value, insn.section.bitsel)] - opcode = FieldsOpcode(fields) + #fields = [] + #fields += [(insn.ppc.opcode.value, insn.ppc.bitsel)] + #opcode = FieldsOpcode(fields) + opcode = insn.ppc.opcode if not isinstance(opcode, list): opcode = [opcode] for op in opcode: @@ -66,7 +67,7 @@ def do_table(fname, insns, section, divpoint): table_entries[upper] = {} table_entries[upper][lower] = None # create an XO - key = i << (31-end) # MSB0-order shift up by *end* + key = i print ("search", i, hex(key)) # start hunting for insn in insns: