add more instructions to litex trampoline test (not tested)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Jul 2020 16:31:21 +0000 (17:31 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Jul 2020 16:57:17 +0000 (17:57 +0100)
src/soc/simulator/test_sim.py

index 83b4a893eeeff9576dc93afb278976f6858e1d5d..16a3237e0fe06af73a940adcf2f137c6c919f93d 100644 (file)
@@ -245,7 +245,14 @@ class GeneralTestCases(FHDLTestCase):
 
     def test_litex_trampoline(self):
         lst = ["tdi   0,0,0x48",
-               "b     0x24",
+               "b     0x28",
+               "mfmsr r11",
+               "bcl 20,31,4",
+               "mflr r10",
+               "addi r10,r10,20",
+               "mthsrr0 r10",
+               "mthsrr1 r11",
+               "hrfid",
                ]
         with Program(lst, bigendian) as program:
             self.run_tst_program(program, [], initial_mem={})