add bigendian
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 11 Jul 2020 21:46:10 +0000 (22:46 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 11 Jul 2020 21:46:10 +0000 (22:46 +0100)
src/soc/fu/ldst/test/test_pipe_caller.py

index 5e41cbf33eb6ee7d97036aa8a6a7e4e5870f84b0..88671f493ff9a6fe12bd84f09410d9a2b9f8385d 100644 (file)
@@ -10,6 +10,7 @@ from soc.decoder.power_enums import (XER_bits, Function, InternalOp, CryIn)
 from soc.decoder.selectable_int import SelectableInt
 from soc.simulator.program import Program
 from soc.decoder.isa.all import ISA
+from soc.config.endian import bigendian
 
 
 from soc.fu.test.common import TestCase
@@ -71,7 +72,7 @@ class LDSTTestCase(FHDLTestCase):
                        0x0008: (0xabcdef0187654321, 8),
                        0x0020: (0x1828384822324252, 8),
                         }
-        self.run_tst_program(Program(lst), initial_regs,
+        self.run_tst_program(Program(list, bigendian), initial_regs,
                              initial_mem=initial_mem)
 
     def test_2_load_store(self):
@@ -87,7 +88,7 @@ class LDSTTestCase(FHDLTestCase):
                        0x0008: (0xabcdef0187654321, 8),
                        0x0020: (0x1828384822324252, 8),
                         }
-        self.run_tst_program(Program(lst), initial_regs,
+        self.run_tst_program(Program(list, bigendian), initial_regs,
                              initial_mem=initial_mem)
 
     def test_3_load_store(self):
@@ -101,7 +102,7 @@ class LDSTTestCase(FHDLTestCase):
                        0x0008: (0xabcdef0187654321, 8),
                        0x0020: (0x1828384822324252, 8),
                         }
-        self.run_tst_program(Program(lst), initial_regs,
+        self.run_tst_program(Program(list, bigendian), initial_regs,
                              initial_mem=initial_mem)
 
     def test_4_load_store_rev_ext(self):
@@ -115,7 +116,7 @@ class LDSTTestCase(FHDLTestCase):
                        0x0008: (0xabcdef0187654321, 8),
                        0x0020: (0x1828384822324252, 8),
                         }
-        self.run_tst_program(Program(lst), initial_regs,
+        self.run_tst_program(Program(list, bigendian), initial_regs,
                              initial_mem=initial_mem)
 
     def test_5_load_store_rev_ext(self):
@@ -129,7 +130,7 @@ class LDSTTestCase(FHDLTestCase):
                        0x0008: (0xabcdef0187654321, 8),
                        0x0020: (0x1828384822324252, 8),
                         }
-        self.run_tst_program(Program(lst), initial_regs,
+        self.run_tst_program(Program(list, bigendian), initial_regs,
                              initial_mem=initial_mem)
 
     def test_6_load_store_rev_ext(self):
@@ -143,6 +144,6 @@ class LDSTTestCase(FHDLTestCase):
                        0x0008: (0xabcdef0187654321, 8),
                        0x0020: (0x1828384822324252, 8),
                         }
-        self.run_tst_program(Program(lst), initial_regs,
+        self.run_tst_program(Program(list, bigendian), initial_regs,
                              initial_mem=initial_mem)