source: rtems-testing/sim-scripts/tsim-support @ 33a3fc7

4.11
Last change on this file since 33a3fc7 was 33a3fc7, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 13, 2009 at 9:24:46 PM

2009-08-13 Joel Sherrill <joel.sherrill@…>

  • Makefile, gdb-sim-run.in, gdb-sim.in, mkrun, skyeye-support, tsim-support: GDB now works with tsim and skyeye simulator BSPs.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1#
2#  TSIM Shared Support
3#
4#  $Id$
5#
6
7runBSP=tsim-${tsimName}
8bspUsesGDBSimulator="no"
9bspGeneratesGDBCommands="yes"
10bspSupportsGDBServerMode="yes"
11
12type ${runBSP} >/dev/null 2>&1
13if [ $? -ne 0 ] ; then
14  echo "Unable to find ${runBSP} on PATH."
15  exit 1
16fi
17
18# required for this to run
19echo | ${runBSP} -nohaspnet >/dev/null
20if [ $? -ne 0 ] ; then
21  echo "No TSIM License for this machine."
22  exit 1
23fi
24
25runARGS()
26{
27  echo "-c ${bspTreeFile} ${1}"
28}
29
30gdbServerARGS()
31{
32  echo "-gdb"
33}
34
35bspGenerateGDBCommands()
36{
37cat <<EOF
38tar remote :1234
39load
40EOF
41}
42
43checkBSPFaults()
44{
45  return 0
46}
47
48bspLimit()
49{
50  testname=$1
51  case ${testname} in
52    *stackchk*)limit=5 ;;
53    *fatal*)   limit=1 ;;
54    *psxtime*)
55       case ${tsimName} in
56         leon) limit=240 ;;  # ran in 200 seconds on idle england
57         leon3) limit=240 ;;  # ran in 200 seconds on idle england
58         *)     limit=180 ;;
59       esac
60       ;;
61    *)         limit=60 ;;
62  esac
63  return ${limit}
64}
65
66bspSimTrustedToExit="yes"
67bspGeneratesDeviceTree="yes"
68bspTreeFile=${tsimName}.conf
69
70bspGenerateDeviceTree()
71{
72  if [ ${inGDBScript} = no ] ; then
73    if [ ${coverage} = yes ] ; then
74      echo "coverage enable"
75    fi
76    if [ ${limit} -eq 0 ] ; then
77      echo "go ${tsimGoAddress}"
78    else
79      echo "go ${tsimGoAddress} ${limit} s"
80    fi
81    if [ ${coverage} = yes ] ; then
82      echo "coverage save ${2}.cov"
83      echo "shell sleep 1"           # give tsim time to actually write file
84    fi
85    echo "quit"
86  fi
87}
Note: See TracBrowser for help on using the repository browser.