From ede9773683c24b5762ecc731380e535692694f9f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 3 Sep 2022 19:30:08 +0100 Subject: [PATCH] use opcode directly --- src/openpower/decoder/power_table.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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: -- 2.30.2