add trampoline test from litex
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 30 Jul 2020 12:21:43 +0000 (13:21 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 30 Jul 2020 12:21:43 +0000 (13:21 +0100)
src/soc/simulator/test_sim.py

index c6a212fd5c0062896a2e5dac78db936bf03f6979..83b4a893eeeff9576dc93afb278976f6858e1d5d 100644 (file)
@@ -243,6 +243,13 @@ class GeneralTestCases(FHDLTestCase):
         with Program(lst, bigendian) as program:
             self.run_tst_program(program, [9], initial_mem={})
 
+    def test_litex_trampoline(self):
+        lst = ["tdi   0,0,0x48",
+               "b     0x24",
+               ]
+        with Program(lst, bigendian) as program:
+            self.run_tst_program(program, [], initial_mem={})
+
     def test_30_addis(self):
         lst = [  # "addi 0, 0, 5",
             "addis 12, 0, 0",