I have have attached a patch for RSB that will enable SMP support for the sis simulator. This is done by pulling in a second sis patch on top of the existing one, containing the SMP feature. To enable SMP operation, start sis with -m <n> where n is between 2 and 4:
$ sparc-rtems5-sis -leon3 -m 4 SIS - SPARC instruction simulator 2.9, copyright Jiri Gaisler 1995 Bug-reports to j...@gaisler.se LEON3 emulation enabled, 4 cpus online, delta 50 clocks sis> I have updated the README files in sis to reflect the new features. Debugging in gdb works as before, but breakpoints are global until I manage to add RTEMS threads awareness to sis. A second (simple) patch is attached for leon3-sis.ini in rtems-tools, just to allow rtems-test to run the SMP tests. I will now move to gdb-8.2+ and merge RISCV support to sis. Jiri.
diff --git a/rtems/config/tools/rtems-gdb-8.0.1-1.cfg b/rtems/config/tools/rtems-gdb-8.0.1-1.cfg index 7911460..d3cdeef 100644 --- a/rtems/config/tools/rtems-gdb-8.0.1-1.cfg +++ b/rtems/config/tools/rtems-gdb-8.0.1-1.cfg @@ -12,6 +12,9 @@ %patch add gdb https://devel.rtems.org/raw-attachment/ticket/3460/gdb-8.0.1-sis-leon2-leon3.diff %hash sha512 gdb-8.0.1-sis-leon2-leon3.diff a16859b5badbce8ecbc9259553b2abe7e93b4fb8ab899e18e8ddb294a1433f49df8ddee418bb6ab55dc2402e5ad6aca6274fb9e8b53278574f269a555fdeddcf +%patch add gdb https://gaisler.se/gdb/gdb-8.0.1-sis-leon3-smp.diff +%hash sha512 gdb-8.0.1-sis-leon3-smp.diff 1d086c656e6c240eee721f0f4a5cd43d4bbd29feff2ac22e6e56b6953c6390438976180575c0888c38a000c5ed6c8276479e9620315fdd6a6455214218ecbb78 + %ifos win32 %if %{_windows_os} == cygwin %patch add gdb https://devel.rtems.org/raw-attachment/ticket/3576/gdb-8.0.1-sis-cygwin.diff
diff --git a/tester/rtems/testing/bsps/leon3-sis.ini b/tester/rtems/testing/bsps/leon3-sis.ini index d2a9e05..2f933a7 100644 --- a/tester/rtems/testing/bsps/leon3-sis.ini +++ b/tester/rtems/testing/bsps/leon3-sis.ini @@ -36,4 +36,4 @@ bsp = leon3 arch = sparc tester = %{_rtscripts}/run.cfg bsp_run_cmd = %{rtems_tools}/%{bsp_arch}-rtems%{rtems_version}-sis -bsp_run_opts = -leon3 -nouartrx -r -tlim 200 s +bsp_run_opts = -leon3 -nouartrx -r -tlim 200 s -m 4
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel