Need help to execute/debug smpschededf02.exe on leon3

Richi Dubey richidubey at gmail.com
Mon May 25 14:30:12 UTC 2020


Hii everyone,

When I am executing smpschededf02.exe on my leon3 bsp running on
sparc5 with  sparc-rtems5-sis with -m 4 -leon3 option, it fails to
execute properly.

I have built leon3 with --enable-smp option and I am guessing the
execution fails because I don not see any output of the test and I can
only see the following output:
---------------------------------------------
~/quick-start/rtems/5/bin$ ./sparc-rtems5-sis -leon3 -m 4
~/quick-start/build/leon3/sparc-rtems5/c/leon3/testsuites/smptests/smpschededf02.exe

 SIS - SPARC/RISCV instruction simulator 2.21,  copyright Jiri Gaisler 2019
 Bug-reports to jiri at gaisler.se

 LEON3 emulation enabled, 4 cpus online, delta 50 clocks

 Loaded /home/richi/quick-start/build/leon3/sparc-rtems5/c/leon3/testsuites/smptests/smpschededf02.exe,
entry 0x40000000
cpu0> run


*** BEGIN OF TEST SMPSCHEDEDF 2 ***
*** TEST VERSION: 5.0.0.20a8361de4724658112ecd33c28fae82a15919f8
*** TEST STATE: EXPECTED_PASS
*** TEST BUILD: RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP
*** TEST TOOLS: 7.5.0 20191114 (RTEMS 5, RSB 5 (0b7e87143b76), Newlib fbaa096)

*** END OF TEST SMPSCHEDEDF 2 ***

cpu 1 in error mode (tt = 0x80)
  3491850  40016360:  91d02000   ta  0x0
-------------------------------------------------------

On running the program with gdb with extended-remote and debugging
with sis, I am encountering the following error:

----------------------
(gdb) target extended-remote localhost:1234
Remote debugging using localhost:1234
0x00000000 in ?? ()
(gdb)
------------------------

I even tried to execute sis with -m 2 option as smpschededf02/init.c
has #define CPU_COUNT 2, but sis still shows the same output with no
changes.

I have attached the screenshots of my terminal. It'd be great if
someone could please help me out.

Thanks,
Richi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2020-05-25 19-33-16.png
Type: image/png
Size: 92671 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200525/0ef1f5ef/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2020-05-25 19-34-32.jpg
Type: image/jpeg
Size: 52780 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200525/0ef1f5ef/attachment-0001.jpg>


More information about the devel mailing list