Changes between Version 1 and Version 2 of TBR/BSP/Psim


Ignore:
Timestamp:
Apr 14, 2009, 2:04:47 PM (11 years ago)
Author:
Thomas
Comment:

add info how to call the simulator

Legend:

Unmodified
Added
Removed
Modified
  • TBR/BSP/Psim

    v1 v2  
    33
    44This 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.
     5
     6The 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/>.
     7
     8Example to debug the code (for rtems-4.10):
     9 
     10 /opt/rtems-4.10/powerpc-rtems4.10/psim/tests/psim-gdb ticker.exe
     11
     12Example to execute the code directly (for rtems-4.10):
     13 
     14 /opt/rtems-4.10/powerpc-rtems4.10/psim/tests/psim ticker.exe
    515= Test Reports =
    616