From d06c33854beed0485e42dd16334f8854b18315ea Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 19 Jun 2020 13:50:13 +0100 Subject: [PATCH] whoops detected page name wrong, for special case fixedshift --- src/soc/decoder/pseudo/pywriter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']) -- 2.30.2