From 10d93c409853eb0c7994b43e13eee0560437d058 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 9 May 2023 18:26:49 +0100 Subject: [PATCH] separate ISAPages out from inherited ISA Class --- src/openpower/decoder/pseudo/pywriter.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(): -- 2.30.2