From 9276f73c76a342af9555bb4dd255f348c297f3ab Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 5 Apr 2020 19:54:30 +0100 Subject: [PATCH] drop instr info into uniquely-named dict --- 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 5002ce4c..ca213514 100644 --- a/src/soc/decoder/pseudo/pywriter.py +++ b/src/soc/decoder/pseudo/pywriter.py @@ -65,9 +65,9 @@ class PyISAWriter(ISA): iinfo = "(%s, %s,\n %s, %s)" % \ (op_fname, rused['read_regs'], rused['uninit_regs'], rused['write_regs']) - iinf += " instrs['%s'] = %s\n" % (page, iinfo) + iinf += " %s_instrs['%s'] = %s\n" % (pagename, page, iinfo) # write out initialisation of info, for ISACaller to use - f.write(" instrs = {}\n") + f.write(" %s_instrs = {}\n" % pagename) f.write(iinf) if __name__ == '__main__': -- 2.30.2