whoops detected page name wrong, for special case fixedshift
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Jun 2020 12:50:13 +0000 (13:50 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Jun 2020 12:50:13 +0000 (13:50 +0100)
src/soc/decoder/pseudo/pywriter.py

index f6c1ef6a7f9047af16dcd40ee43146e94c75917c..9acec8cea994809343daa8b74d8ce081c9335520 100644 (file)
@@ -52,10 +52,10 @@ class PyISAWriter(ISA):
             # go through all instructions
             for page in instrs:
                 d = self.instr[page]
-                print (fname, d.opcode)
+                print ("page", pagename, page, fname, d.opcode)
                 pcode = '\n'.join(d.pcode) + '\n'
                 print (pcode)
-                incl_carry = page == 'fixedshift'
+                incl_carry = pagename == 'fixedshift'
                 pycode, rused = convert_to_python(pcode, d.form, incl_carry)
                 # create list of arguments to call
                 regs = list(rused['read_regs']) + list(rused['uninit_regs'])