summaryrefslogtreecommitdiffstats
path: root/sim-scripts/jmr3904.in
blob: decc8dea9cf93b132c7b59821b5bd81317e648dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
#  MIPS JMR3904 Support 
#

runARGS()
{
  echo "--board=jmr3904 ${1}"
}

checkBSPFaults()
{
  logfile=$1
  grep "^Unhandled exception" ${logfile}
  exceptionExit=$?
  grep "^mips-core: " ${logfile}
  badAccessExit=$?
  grep "Data Bus Error" ${logfile}
  dataBusError=$?
  if [ $badAccessExit -eq 0 -o $exceptionExit -eq 0 -o \
       $dataBusError -eq 0 ] ; then
    return 1
  fi
  return 0
}

bspLimit()
{
  testname=$1
  case ${testname} in
    *stackchk*)limit=5 ;;
    *fatal*)   limit=1 ;;
    *minimum*) limit=1 ;;
    *psxtime*) limit=180 ;;
    *)         limit=60 ;;
  esac
  echo ${limit}
}

bspGeneratesGDBCommands="yes"

bspGenerateGDBCommands()
{
cat <<EOF
tar sim --board=jmr3904
load
EOF
}