summaryrefslogtreecommitdiffstats
path: root/sim-scripts/leon3.in
blob: 4e5c315bed342d1bb1a28fd4138a540f8bfa9230 (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
48
49
50
51
52
53
54
55
#
#  SPARC/SIS Support for LEON3
#

## Not really a device tree file but a command file
bspGeneratesDeviceTree="yes"
bspTreeFile=leon2_cmds.${LOGNAME}

runBSP=`echo ${defaultRUN} | sed -e 's/run/sis/'`

# Simulator provides 16 MB memory
runARGS()
{
  echo "-leon3 -c ${bspTreeFile} ${1}"
}

checkBSPFaults()
{
  logfile=$1
  grep "^Memory exception at " ${logfile}
  badAccessExit=$?
  if [ $badAccessExit -eq 0 ] ; then
    return 1
  fi
  return 0
}

bspLimit()
{
  testname=$1
  case ${testname} in
    *)         limit=180 ;;
  esac
  echo ${limit}
}

### Generate the SIS command file
bspGenerateDeviceTree()
{
cat <<EOF >${bspTreeFile}
run
quit
EOF
}

## We have to pass in an argument to gdb to select the CPU
bspGeneratesGDBCommands="yes"

bspGenerateGDBCommands()
{
cat <<EOF
tar sim -leon3
load
EOF
}