diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-24 00:24:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-24 00:24:12 +0000 |
commit | a3ec2e9c2aa4a320c38c2a16e2817f8135da60cc (patch) | |
tree | 29c4acafec5b8cae51fab407d5476920ec8a80af /sim-scripts | |
parent | f7fa73d33d9412e0b7f340fe9b332c516be650d6 (diff) |
2009-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore, Makefile: Add lm32_evr simulator script support.
* lm32_evr.in: New file.
Diffstat (limited to 'sim-scripts')
-rw-r--r-- | sim-scripts/.cvsignore | 2 | ||||
-rw-r--r-- | sim-scripts/ChangeLog | 5 | ||||
-rw-r--r-- | sim-scripts/Makefile | 5 | ||||
-rw-r--r-- | sim-scripts/lm32_evr.in | 56 |
4 files changed, 67 insertions, 1 deletions
diff --git a/sim-scripts/.cvsignore b/sim-scripts/.cvsignore index 756b27f..e54bbb8 100644 --- a/sim-scripts/.cvsignore +++ b/sim-scripts/.cvsignore @@ -27,6 +27,8 @@ leon2-skyeye leon2-skyeye-gdb leon3 leon3-gdb +lm32_evr +lm32_evr-gdb m32csim m32csim-gdb m32rsim diff --git a/sim-scripts/ChangeLog b/sim-scripts/ChangeLog index d3c5f9b..653d8e0 100644 --- a/sim-scripts/ChangeLog +++ b/sim-scripts/ChangeLog @@ -1,3 +1,8 @@ +2009-09-23 Joel Sherrill <joel.sherrill@oarcorp.com> + + * .cvsignore, Makefile: Add lm32_evr simulator script support. + * lm32_evr.in: New file. + 2009-09-22 Joel Sherrill <joel.sherrill@oarcorp.com> * psim.in: Update to accomodate Till's changes to the BSP to use diff --git a/sim-scripts/Makefile b/sim-scripts/Makefile index b064c38..46b4502 100644 --- a/sim-scripts/Makefile +++ b/sim-scripts/Makefile @@ -3,7 +3,7 @@ # INSTALL_DIR=../bin -GDBSIM_SCRIPTS=h8sim jmr3904 m32csim m32rsim psim sis simsh +GDBSIM_SCRIPTS=h8sim jmr3904 lm32_evr m32csim m32rsim psim sis simsh SKYEYE_SCRIPTS=ant5206 bf537Stamp csb337 csb350 csb360 edb7312 ezkit533 \ gumstix rtl22xx smdk2410 leon2-skyeye @@ -91,6 +91,9 @@ h8sim h8sim-gdb: gdb-sim-run.in gdb-sim.in h8sim.in jmr3904 jmr3904-gdb: gdb-sim-run.in gdb-sim.in jmr3904.in ./mkrun yes MIPS mipstx39 jmr3904 +lm32_evr lm32_evr-gdb: gdb-sim-run.in gdb-sim.in lm32_evr.in + ./mkrun yes LM32 lm32 lm32_evr + m32csim m32csim-gdb: gdb-sim-run.in gdb-sim.in m32csim.in ./mkrun yes M32C m32c m32csim diff --git a/sim-scripts/lm32_evr.in b/sim-scripts/lm32_evr.in new file mode 100644 index 0000000..9aed901 --- /dev/null +++ b/sim-scripts/lm32_evr.in @@ -0,0 +1,56 @@ +# +# lm32/lm32_evr Support Using Simulator in GDB +# +# $Id$ +# + +runARGS() +{ +# echo '--hw-device lm32cpu +# --hw-device "lm32uart/reg 0x80006000 0x100" +# --hw-device "/lm32uart > int int0 /lm32cpu" +# --hw-device "lm32timer/reg 0x80002000 0x80" +# --hw-device "/lm32timer > int int1 /lm32cpu" +# --memory-region 0x08000000,0x4000000' ${1} +cat >lm32_evr.conf <<EOF +lm32cpu +lm32uart/reg 0x80006000 0x100 +/lm32uart > int int0 /lm32cpu +lm32timer/reg 0x80002000 0x80 +/lm32timer > int int1 /lm32cpu +--memory-region 0x08000000,0x4000000 +EOF + echo "--hw-file lm32_evr.conf ${1}" +} + +bspGeneratesGDBCommands="yes" + +bspGenerateGDBCommands() +{ +cat <<EOF +tar sim --hw-device lm32cpu \\ + --hw-device "lm32uart/reg 0x80006000 0x100" \\ + --hw-device "/lm32uart > int int0 /lm32cpu" \\ + --hw-device "lm32timer/reg 0x80002000 0x80" \\ + --hw-device "/lm32timer > int int1 /lm32cpu" \\ + --memory-region 0x08000000,0x4000000 +load +EOF +} + +checkBSPFaults() +{ + return 0 +} + +bspLimit() +{ + testname=$1 + case ${tname} in + *stackchk*)limit=5 ;; + *fatal*) limit=1 ;; + *psxtime*) limit=180 ;; + *) limit=60 ;; + esac + echo ${limit} +} |