add ISACallerFnHelper, remove FPADD32 and other FP helpers
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 28 Sep 2021 10:07:41 +0000 (11:07 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 28 Sep 2021 11:10:56 +0000 (12:10 +0100)
src/openpower/decoder/pseudo/pywriter.py

index dafe6122eb89890a379e9ea44537cf7bdc8935cd..b01fc4cc0a0008f492b35bd1e397f2a1862271b7 100644 (file)
@@ -35,10 +35,10 @@ from openpower.decoder.isafunctions.all import ISACallerFnHelper
 fpheader = """
 from openpower.decoder.helpers import (
                                  SINGLE,
-                                 FPADD32, FPSUB32, FPMUL32, FPDIV32,
+                                 #FPADD32, FPSUB32, FPMUL32, FPDIV32,
                                  FPADD64, FPSUB64, FPMUL64, FPDIV64,
-                                 FPMULADD32,
-                                 FPSIN32, FPCOS32,
+                                 #FPMULADD32,
+                                 #FPSIN32, FPCOS32,
                                 )
 
 """
@@ -137,12 +137,15 @@ class PyISAWriter(ISA):
             f.write('# auto-generated by pywriter.py: do not edit or commit\n')
             f.write('from openpower.decoder.isa.caller import ISACaller\n')
             f.write('from openpower.decoder.helpers import ISACallerHelper\n')
+            f.write('from openpower.decoder.isafunctions.all '
+                    'import ISACallerFnHelper\n')
             for page in self.pages_written:
                 f.write('from openpower.decoder.isa.%s ' \
                         'import %s\n' % (page, page))
             f.write('\n')
 
-            classes = ', '.join(['ISACaller', 'ISACallerHelper'] + self.pages_written)
+            classes = ', '.join(['ISACaller', 'ISACallerFnHelper',
+                                 'ISACallerHelper'] + self.pages_written)
             f.write('class ISA(%s):\n' % classes)
             f.write('    def __init__(self, *args, **kwargs):\n')
             f.write('        super().__init__(*args, **kwargs)\n')