source: rtems-testing/sim-scripts/lm32_evr.in @ 6dc7bcc

4.11
Last change on this file since 6dc7bcc was 1273785, checked in by Joel Sherrill <joel.sherrill@…>, on May 15, 2012 at 9:03:18 PM

rtems-testing - Remove CVS Ids (scripted)

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#
2#  lm32/lm32_evr Support Using Simulator in GDB
3#
4
5runARGS()
6{
7#  echo '--hw-device lm32cpu
8#       --hw-device "lm32uart/reg 0x80006000 0x100"
9#       --hw-device "/lm32uart > int int0 /lm32cpu"
10#       --hw-device "lm32timer/reg 0x80002000 0x80"
11#       --hw-device "/lm32timer > int int1 /lm32cpu"
12#       --memory-region 0x08000000,0x4000000' ${1}
13cat >lm32_evr.conf <<EOF
14lm32cpu
15lm32uart/reg 0x80006000 0x100
16/lm32uart > int int0 /lm32cpu
17lm32timer/reg 0x80002000 0x80
18/lm32timer > int int1 /lm32cpu
19--memory-region  0x08000000,0x4000000
20EOF
21  echo "--hw-file lm32_evr.conf ${1}"
22}
23
24bspGeneratesGDBCommands="yes"
25
26bspGenerateGDBCommands()
27{
28cat <<EOF
29tar sim --hw-device lm32cpu \\
30  --hw-device "lm32uart/reg 0x80006000 0x100" \\
31  --hw-device "/lm32uart > int int0 /lm32cpu" \\
32  --hw-device "lm32timer/reg 0x80002000 0x80" \\
33  --hw-device "/lm32timer > int int1 /lm32cpu" \\
34  --memory-region 0x08000000,0x4000000
35load
36EOF
37}
38
39checkBSPFaults()
40{
41  return 0
42}
43
44bspLimit()
45{
46  testname=$1
47  case ${testname} in
48    *stackchk*)limit=5 ;;
49    *fatal*)   limit=1 ;;
50    *minimum*) limit=1 ;;
51    *psxtime*) limit=180 ;;
52    *)         limit=60 ;;
53  esac
54  echo ${limit}
55}
Note: See TracBrowser for help on using the repository browser.