whoops swap regs and form
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 6 Apr 2020 12:56:33 +0000 (13:56 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 6 Apr 2020 12:56:33 +0000 (13:56 +0100)
src/soc/decoder/pseudo/pywriter.py

index a8f9bdabfd4eadc075c297b08d3347374662f687..c33f944cad45348a16307a3ce863aa5b6fffa513 100644 (file)
@@ -73,7 +73,7 @@ class PyISAWriter(ISA):
                 ops = repr(rused['op_fields'])
                 iinfo = iinfo_template % (op_fname, rused['read_regs'],
                                 rused['uninit_regs'], rused['write_regs'],
-                                ops, d.form, d.regs)
+                                ops, d.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)
@@ -99,9 +99,6 @@ class PyISAWriter(ISA):
             f.write('        }\n')
 
 
-
-
-
 if __name__ == '__main__':
     isa = PyISAWriter()
     if len(sys.argv) == 1: # quick way to do it