let PowerDecode2 decide which operand class to use in test_core.py
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 30 Nov 2021 16:23:43 +0000 (16:23 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 30 Nov 2021 16:23:43 +0000 (16:23 +0000)
this gets it to pick *all* fields

src/soc/simple/test/test_core.py

index 43564ebed76f3401cccc8513ca731b5c90f2f27f..29360688d7f4e230bc0103e6f81fd856066be233 100644 (file)
@@ -221,7 +221,7 @@ class TestRunner(FHDLTestCase):
 
         cur_state = CoreState("cur") # current state (MSR/PC/SVSTATE)
         pdecode2 = PowerDecode2(None, state=cur_state,
-                                     opkls=IssuerDecode2ToOperand,
+                                     #opkls=IssuerDecode2ToOperand,
                                      svp64_en=True, # self.svp64_en,
                                      regreduce_en=False, #self.regreduce_en
                                     )
@@ -349,7 +349,7 @@ if __name__ == "__main__":
     #suite.addTest(TestRunner(CRTestCase().test_data))
     #suite.addTest(TestRunner(ShiftRotTestCase().test_data))
     #suite.addTest(TestRunner(LogicalTestCase().test_data))
-    #suite.addTest(TestRunner(ALUTestCase().test_data))
+    suite.addTest(TestRunner(ALUTestCase().test_data))
     #suite.addTest(TestRunner(BranchTestCase().test_data))
 
     runner = unittest.TextTestRunner()