From: Luke Kenneth Casson Leighton Date: Sat, 11 Jul 2020 21:46:10 +0000 (+0100) Subject: add bigendian X-Git-Tag: div_pipeline~91 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1362a186534fce5d08d0da2dc8ff34ae3126de7a;p=soc.git add bigendian --- diff --git a/src/soc/fu/ldst/test/test_pipe_caller.py b/src/soc/fu/ldst/test/test_pipe_caller.py index 5e41cbf3..88671f49 100644 --- a/src/soc/fu/ldst/test/test_pipe_caller.py +++ b/src/soc/fu/ldst/test/test_pipe_caller.py @@ -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)