From: Luke Kenneth Casson Leighton Date: Wed, 17 Jun 2020 14:46:04 +0000 (+0100) Subject: got fed up of adding arguments to ISACaller / ISA, use *args and **kwargs X-Git-Tag: div_pipeline~340 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d97838711d21c329daf15c310de06ba5cb9f42ed;p=soc.git got fed up of adding arguments to ISACaller / ISA, use *args and **kwargs --- 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)