source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim @ ff91296

4.104.114.84.95
Last change on this file since ff91296 was ff91296, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 8, 2006 at 5:44:23 PM

2006-01-08 Joel Sherrill <joel@…>

  • psim, psim-gdb: Add setting of PVR to 0xfffe0000 since psim needs a special processor version value or exceptions will not work.
  • Property mode set to 100755
File size: 1.1 KB
Line 
1#! /bin/sh
2#
3#  Shell script to ease invocation of the powerpc simulator
4#
5#  COPYRIGHT (c) 1989-2006.
6#  On-Line Applications Research Corporation (OAR).
7#
8#  The license and distribution terms for this file may be
9#  found in found in the file LICENSE in this distribution or at
10#  http://www.rtems.com/license/LICENSE.
11#
12#  $Id$
13#
14
15TREE_FILE=psim_tree.${LOGNAME}
16
17# RUN_DEBUG="-t sem_device"
18
19#  Build this user's device tree file
20echo "/#address-cells 2"                              >  ${TREE_FILE}
21echo "/openprom/init/register/pvr 0xfffe0000"         >> ${TREE_FILE}
22echo "/openprom/options/oea-memory-size 8388608"      >> ${TREE_FILE}
23
24# These require the semaphore and shared memory device models.
25# echo "/shm@0xc0000000/reg 0xc0000000 0x10000"         >> ${TREE_FILE}
26# echo "/shm@0xc0000000/key ${RTEMS_SHM_KEY}"           >> ${TREE_FILE}
27# echo "/sem@0xc0010000/reg 0xc0010000 12"              >> ${TREE_FILE}
28# echo "/sem@0xc0010000/key ${RTEMS_SHM_SEMAPHORE_KEY}" >> ${TREE_FILE}
29# echo "/sem@0xc0010000/value -1"                       >> ${TREE_FILE}
30
31RUN=powerpc-rtems4.7-run
32${RUN} -f ${TREE_FILE} ${RUN_DEBUG} $*
33
34exit $?
35
Note: See TracBrowser for help on using the repository browser.