OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [powerpc/] [psim/] [tools/] [psim] - Blame information for rev 389

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#! /bin/sh
2
#
3
#  Shell script to ease invocation of the powerpc simulator
4
#
5
#  COPYRIGHT (c) 1989-1999.
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.OARcorp.com/rtems/license.html.
11
#
12
#  $Id: psim,v 1.2 2001-09-27 12:01:02 chris Exp $
13
#
14
 
15
TREE_FILE=psim_tree.${LOGNAME}
16
GDB_FILE=gdb_tree.${LOGNAME}
17
 
18
# GDB_DEBUG="-t sem-device"
19
# RUN_DEBUG="-t sem_device"
20
 
21
#  Build this user's device tree file
22
echo "/#address-cells 2"                              >  ${TREE_FILE}
23
#echo "/openprom/options/oea-memory-size 4194304"      >> ${TREE_FILE}
24
echo "/openprom/options/oea-memory-size 8388608"      >> ${TREE_FILE}
25
# These require the semaphore and shared memory device models.
26
# echo "/shm@0xc0000000/reg 0xc0000000 0x10000"         >> ${TREE_FILE}
27
# echo "/shm@0xc0000000/key ${RTEMS_SHM_KEY}"           >> ${TREE_FILE}
28
# echo "/sem@0xc0010000/reg 0xc0010000 12"              >> ${TREE_FILE}
29
# echo "/sem@0xc0010000/key ${RTEMS_SHM_SEMAPHORE_KEY}" >> ${TREE_FILE}
30
# echo "/sem@0xc0010000/value -1"                       >> ${TREE_FILE}
31
#
32
#  Build this user's gdb script
33
echo "tar sim -f ${TREE_FILE} ${GDB_DEBUG}"           >  ${GDB_FILE}
34
echo "load"                                           >> ${GDB_FILE}
35
echo "b _Internal_error_Occurred"                     >> ${GDB_FILE}
36
echo "b rtems_fatal_error_occurred"                   >> ${GDB_FILE}
37
echo "b __assert"                                     >> ${GDB_FILE}
38
 
39
RUN=powerpc-rtems-run
40
GDB=powerpc-rtems-gdb
41
 
42
case $0 in
43
   *gdb*)
44
     ${GDB} -x ${GDB_FILE} $*
45
     ;;
46
   *)
47
     # ${RUN} -f ${TREE_FILE} $*
48
     ${RUN} -f ${TREE_FILE} ${RUN_DEBUG} $*
49
     ;;
50
esac
51
exit $?
52
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.