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

4.104.114.84.95
Last change on this file since 6e46f4e1 was 6e46f4e1, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 23, 1998 at 6:35:18 PM

Upped the memory to 8 Mbytes.

  • Property mode set to 100755
File size: 1.7 KB
Line 
1#! /bin/sh
2#
3#  Shell script to ease invocation of the powerpc simulator
4#
5#  COPYRIGHT (c) 1989-1998.
6#  On-Line Applications Research Corporation (OAR).
7#  Copyright assigned to U.S. Government, 1994.
8#
9#  The license and distribution terms for this file may be
10#  found in found in the file LICENSE in this distribution or at
11#  http://www.OARcorp.com/rtems/license.html.
12#
13#  $Id$
14#
15
16TREE_FILE=psim_tree.${LOGNAME}
17GDB_FILE=gdb_tree.${LOGNAME}
18
19# GDB_DEBUG="-t sem-device"
20# RUN_DEBUG="-t sem_device"
21
22#  Build this user's device tree file
23echo "/#address-cells 2"                              >  ${TREE_FILE}
24#echo "/openprom/options/oea-memory-size 4194304"      >> ${TREE_FILE}
25echo "/openprom/options/oea-memory-size 8388608"      >> ${TREE_FILE}
26# These require the semaphore and shared memory device models.
27# echo "/shm@0xc0000000/reg 0xc0000000 0x10000"         >> ${TREE_FILE}
28# echo "/shm@0xc0000000/key ${RTEMS_SHM_KEY}"           >> ${TREE_FILE}
29# echo "/sem@0xc0010000/reg 0xc0010000 12"              >> ${TREE_FILE}
30# echo "/sem@0xc0010000/key ${RTEMS_SHM_SEMAPHORE_KEY}" >> ${TREE_FILE}
31# echo "/sem@0xc0010000/value -1"                       >> ${TREE_FILE}
32#
33#  Build this user's gdb script
34echo "tar sim -f ${TREE_FILE} ${GDB_DEBUG}"           >  ${GDB_FILE}
35echo "load"                                           >> ${GDB_FILE}
36echo "b _Internal_error_Occurred"                     >> ${GDB_FILE}
37echo "b rtems_fatal_error_occurred"                   >> ${GDB_FILE}
38echo "b __assert"                                     >> ${GDB_FILE}
39
40RUN=powerpc-rtems-run
41GDB=powerpc-rtems-gdb
42
43case $0 in
44   *gdb*)
45     ${GDB} -x ${GDB_FILE} $*
46     ;;
47   *)
48     # ${RUN} -f ${TREE_FILE} $*
49     ${RUN} -f ${TREE_FILE} ${RUN_DEBUG} $*
50     ;;
51esac
52exit $?
53
Note: See TracBrowser for help on using the repository browser.