From 70288b724ab5d232a8452a3917f09ffbebbde30c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 31 Jul 2020 17:31:21 +0100 Subject: [PATCH] add more instructions to litex trampoline test (not tested) --- src/soc/simulator/test_sim.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/soc/simulator/test_sim.py b/src/soc/simulator/test_sim.py index 83b4a893..16a3237e 100644 --- a/src/soc/simulator/test_sim.py +++ b/src/soc/simulator/test_sim.py @@ -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={}) -- 2.30.2