yet another namespace hack now that @inject is on
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 22 May 2023 11:11:11 +0000 (12:11 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:18 +0000 (19:51 +0100)
ISACallerFnHelper_double2single

src/openpower/decoder/isa/test_caller_transcendentals.py

index 3571c1b060e890a636898b9cf05377fd087a213f..6c6304f2b26220f69cc978bec6f95e1424dd95af 100644 (file)
@@ -4,14 +4,21 @@ import unittest
 from nmutil.formaltest import FHDLTestCase
 from openpower.decoder.helpers import fp64toselectable
 from openpower.decoder.isa.test_caller import run_tst
-from openpower.decoder.isafunctions.double2single import ISACallerFnHelper
+from openpower.decoder.isafunctions.double2single import (
+        ISACallerFnHelper_double2single)
 from openpower.decoder.selectable_int import SelectableInt
 from openpower.simulator.program import Program
 from openpower.sv.trans.svp64 import SVP64Asm
 
 # really bad hack.  need to access the DOUBLE2SINGLE function auto-generated
 # from pseudo-code.
-fph = ISACallerFnHelper(XLEN=64, FPSCR=None)
+fph = ISACallerFnHelper_double2single(XLEN=64, FPSCR=None)
+fph.namespace = {'FPSCR': fph.FPSCR,
+                 'NIA': None,
+                 'XLEN': fph.XLEN,
+                 'CIA': None,
+                 'SVSTATE': None,
+                }
 
 
 class FPTranscendentalsTestCase(FHDLTestCase):