get branch compunit working (missing bigendian arg)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 Jul 2020 09:42:21 +0000 (10:42 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 Jul 2020 09:42:21 +0000 (10:42 +0100)
src/soc/fu/compunits/test/test_branch_compunit.py

index 31e664c5a5bb13b001ea1150287853ebd8957c70..63d19680ff8ba3893407d4cc963300c8943898f6 100644 (file)
@@ -6,6 +6,7 @@ from soc.fu.branch.test.test_pipe_caller import BranchTestCase, get_cu_inputs
 
 from soc.fu.compunits.compunits import BranchFunctionUnit
 from soc.fu.compunits.test.test_compunit import TestRunner
+from soc.config.endian import bigendian
 
 from soc.regfile.util import fast_reg_to_spr # HACK!
 
@@ -17,7 +18,7 @@ from soc.regfile.util import fast_reg_to_spr # HACK!
 class BranchTestRunner(TestRunner):
     def __init__(self, test_data):
         super().__init__(test_data, BranchFunctionUnit, self,
-                         Function.BRANCH)
+                         Function.BRANCH, bigendian)
 
     def get_cu_inputs(self, dec2, sim):
         """naming (res) must conform to BranchFunctionUnit input regspec