add printout of instruction Form
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 5 Apr 2020 18:59:25 +0000 (19:59 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 5 Apr 2020 18:59:25 +0000 (19:59 +0100)
src/soc/decoder/pseudo/pywriter.py

index ca213514a80b16a0d9590150bb5af2723e75381b..9d9af8c61e68acecfd7ff0b3340f50d9387ada3c 100644 (file)
@@ -62,9 +62,10 @@ class PyISAWriter(ISA):
                 else:
                     f.write("\n")
                 # accumulate the instruction info
-                iinfo = "(%s, %s,\n                %s, %s)" % \
+                iinfo = "(%s, %s,\n                %s, %s, '%s')" % \
                             (op_fname, rused['read_regs'],
-                            rused['uninit_regs'], rused['write_regs'])
+                            rused['uninit_regs'], rused['write_regs'],
+                            d.form)
                 iinf += "    %s_instrs['%s'] = %s\n" % (pagename, page, iinfo)
             # write out initialisation of info, for ISACaller to use
             f.write("    %s_instrs = {}\n" % pagename)