From: Luke Kenneth Casson Leighton Date: Tue, 9 May 2023 17:26:49 +0000 (+0100) Subject: separate ISAPages out from inherited ISA Class X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10d93c409853eb0c7994b43e13eee0560437d058;p=openpower-isa.git separate ISAPages out from inherited ISA Class --- diff --git a/src/openpower/decoder/pseudo/pywriter.py b/src/openpower/decoder/pseudo/pywriter.py index e8ab004b..b2f39186 100644 --- a/src/openpower/decoder/pseudo/pywriter.py +++ b/src/openpower/decoder/pseudo/pywriter.py @@ -148,15 +148,16 @@ class PyISAWriter(ISA): 'import %s\n' % (page, page)) f.write('\n') - classes = ', '.join(['ISACaller', 'ISACallerFnHelper', - 'ISACallerHelper'] + self.pages_written) - f.write('class ISA(%s):\n' % classes) + f.write('class ISAPages(%s):\n' % ", ".join(self.pages_written)) 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) f.write(' }\n') + classes = ', '.join(['ISAPages', 'ISACaller', 'ISACallerFnHelper', + 'ISACallerHelper']) + f.write('class ISA(%s): pass\n' % classes) def pywriter():