From: Luke Kenneth Casson Leighton Date: Fri, 19 Jun 2020 12:50:13 +0000 (+0100) Subject: whoops detected page name wrong, for special case fixedshift X-Git-Tag: div_pipeline~317 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d06c33854beed0485e42dd16334f8854b18315ea;p=soc.git whoops detected page name wrong, for special case fixedshift --- diff --git a/src/soc/decoder/pseudo/pywriter.py b/src/soc/decoder/pseudo/pywriter.py index f6c1ef6a..9acec8ce 100644 --- a/src/soc/decoder/pseudo/pywriter.py +++ b/src/soc/decoder/pseudo/pywriter.py @@ -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'])