From 4813bac6d2c39bd4a73e0dc47aa08979bd603c2a Mon Sep 17 00:00:00 2001 From: Hesham ALMatary Date: Tue, 26 Aug 2014 12:59:47 -0500 Subject: sim-scripts: Add new or1ksim OpenRISC simulator script. --- sim-scripts/Makefile | 5 +- sim-scripts/or1ksim.in | 155 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 159 insertions(+), 1 deletion(-) create mode 100644 sim-scripts/or1ksim.in (limited to 'sim-scripts') diff --git a/sim-scripts/Makefile b/sim-scripts/Makefile index 9d9baaf..e45feae 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 v850sim + m32csim m32rsim or1ksim psim sis simsh v850sim SKYEYE_SCRIPTS=ant5206 bf537Stamp-skyeye csb337 csb350 csb360 edb7312 \ ezkit533-skyeye gumstix rtl22xx smdk2410 leon2-skyeye @@ -130,6 +130,9 @@ m32csim m32csim-gdb: gdb-sim-run.in gdb-sim.in m32csim.in m32rsim m32rsim-gdb: gdb-sim-run.in gdb-sim.in m32rsim.in ./mkrun yes M32R m32r m32rsim +or1ksim or1ksim-gdb: or1ksim.in + ./mkrun yes OR1K or1k or1ksim + psim psim-gdb: gdb-sim-run.in gdb-sim.in psim.in ./mkrun yes PowerPC powerpc psim diff --git a/sim-scripts/or1ksim.in b/sim-scripts/or1ksim.in new file mode 100644 index 0000000..b71e0f6 --- /dev/null +++ b/sim-scripts/or1ksim.in @@ -0,0 +1,155 @@ +# +# or1k/or1ksim Support +# +bspSupportsGDBServerMode="yes" +runBSP=or32-elf-sim +bspTreeFile=sim.cfg + +runARGS() +{ + echo "-f ${bspTreeFile} ${1}" +} + +checkBSPFaults() +{ + 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" + +gdbServerARGS() +{ + echo "-c ${bspTreeFile}" +} + +bspGenerateGDBCommands() +{ +cat <