wiki:TBR/BSP/Psim

Version 3 (modified by Thomas, on Apr 14, 2009 at 2:05:08 PM) (diff)

/* Test Reports */

Psim

This is a BSP for the PowerPC instruction simulator included with GDB. It is a functional architectural simulator and not accurate from a timing perspective. The decrementer simply counts instructions executed. This is useful when optimizing to reduce overall instructions executed. It does support a clock tick using the decrementer and a console so it is capable of executing most RTEMS tests.

The gdb shipped with the RTEMS PowerPC toolset already contains the simulator. For proper operation, a "device tree file" must be supplied to define the simulated hardware environment. This includes the location and amount of memory available, timer, UARTs and others. The easiest way to start the simulator either with or without debugger command line is to use the supplied scripts in <install-path/psim/tests/>.

Example to debug the code (for rtems-4.10):

/opt/rtems-4.10/powerpc-rtems4.10/psim/tests/psim-gdb ticker.exe

Example to execute the code directly (for rtems-4.10):

/opt/rtems-4.10/powerpc-rtems4.10/psim/tests/psim ticker.exe

Test Reports

4.6.4: User:JoelSherrill? reports that it runs fine on gdb 5.3.

4.6.99.2: User:JoelSherrill? reports that it runs fine on gdb 6.3.