From d97838711d21c329daf15c310de06ba5cb9f42ed Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 17 Jun 2020 15:46:04 +0100 Subject: [PATCH] got fed up of adding arguments to ISACaller / ISA, use *args and **kwargs --- 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 465f366b..88b7539d 100644 --- a/src/soc/decoder/pseudo/pywriter.py +++ b/src/soc/decoder/pseudo/pywriter.py @@ -116,8 +116,8 @@ class PyISAWriter(ISA): classes = ', '.join(['ISACaller'] + self.pages_written) f.write('class ISA(%s):\n' % classes) - f.write(' def __init__(self, dec, regs, sprs, cr, mem, msr):\n') - f.write(' super().__init__(dec, regs, sprs, cr, mem, msr)\n') + f.write(' def __init__(self, *args, **kwargs):\n') + f.write(' super().__init__(*args, **kwargs)\n') f.write(' self.instrs = {\n') for page in self.pages_written: f.write(' **self.%s_instrs,\n' % page) -- 2.30.2