summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-06-12 17:52:45 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-06-12 17:55:11 -0500
commit2bdd0a03f5b985307e878f7d8ada4e6ed11e5ef6 (patch)
tree9f6038e4fb9a493adafc35dfe4b583285fb6c475
parent26f6c1278fd029ebfbee06dec64160dcfa61058e (diff)
downloadrtems-testing-2bdd0a03f5b985307e878f7d8ada4e6ed11e5ef6.tar.bz2
v850sim: New script for GDB v850 simulator
-rw-r--r--sim-scripts/.gitignore2
-rw-r--r--sim-scripts/Makefile5
-rw-r--r--sim-scripts/v850sim.in26
3 files changed, 32 insertions, 1 deletions
diff --git a/sim-scripts/.gitignore b/sim-scripts/.gitignore
index f279af8..e40679f 100644
--- a/sim-scripts/.gitignore
+++ b/sim-scripts/.gitignore
@@ -57,3 +57,5 @@ smdk2410
smdk2410-gdb
uC5282
usleep
+v850sim
+v850sim-gdb
diff --git a/sim-scripts/Makefile b/sim-scripts/Makefile
index f6a8fdd..724984f 100644
--- a/sim-scripts/Makefile
+++ b/sim-scripts/Makefile
@@ -1,6 +1,6 @@
INSTALL_DIR=../bin
GDBSIM_SCRIPTS=bf537Stamp ezkit533 gdbarmsim h8sim jmr3904 lm32_evr \
- m32csim m32rsim psim sis simsh
+ m32csim m32rsim psim sis simsh v850sim
SKYEYE_SCRIPTS=ant5206 bf537Stamp-skyeye csb337 csb350 csb360 edb7312 \
ezkit533-skyeye gumstix rtl22xx smdk2410 leon2-skyeye
@@ -127,6 +127,9 @@ sis sis-gdb: gdb-sim-run.in gdb-sim.in sis.in
simsh simsh-gdb: gdb-sim-run.in gdb-sim.in simsh.in
./mkrun yes SuperH sh simsh
+v850sim v850sim-gdb: gdb-sim-run.in gdb-sim.in v850sim.in
+ ./mkrun yes V850 v850 v850sim
+
## AVR Test (uses Simulavrxx)
avrtest: gdb-sim-run.in avrtest.in
./mkrun no AVR avr avrtest
diff --git a/sim-scripts/v850sim.in b/sim-scripts/v850sim.in
new file mode 100644
index 0000000..30ef8a7
--- /dev/null
+++ b/sim-scripts/v850sim.in
@@ -0,0 +1,26 @@
+#
+# v850 Simulator in GDB Support
+#
+
+runARGS()
+{
+ echo "${1}"
+}
+
+checkBSPFaults()
+{
+ return 0
+}
+
+bspLimit()
+{
+ testname=$1
+ case ${testname} in
+ *)
+ limit=5
+ ;;
+ esac
+ echo ${limit}
+}
+
+bspSkipInterruptCriticalSectionTests="yes"