summaryrefslogtreecommitdiffstats
path: root/sim-scripts/gdb-sim-run.in
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-31 15:27:00 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-31 16:49:15 +0200
commit88fd1e0e00e5b0a30f177ae08c1fd1fde234df59 (patch)
tree3fe7ba09ef9006765ffc836f407e7df0a358e86c /sim-scripts/gdb-sim-run.in
parentEnable CLOCK_DRIVER_USE_FAST_IDLE for Qemu BSPs (diff)
downloadrtems-testing-88fd1e0e00e5b0a30f177ae08c1fd1fde234df59.tar.bz2
sim-scripts: Add realview_pbx_a9_qemu_smp
Diffstat (limited to 'sim-scripts/gdb-sim-run.in')
-rwxr-xr-xsim-scripts/gdb-sim-run.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/sim-scripts/gdb-sim-run.in b/sim-scripts/gdb-sim-run.in
index 1870b0a..e48338a 100755
--- a/sim-scripts/gdb-sim-run.in
+++ b/sim-scripts/gdb-sim-run.in
@@ -29,7 +29,7 @@ USAGE=\
-N -- enable use of network adapter (default=no)
-G -- put simulator in GDB server mode (default=no)
-i -- interactive (default=no time limit)
- -p cores -- number of cores for SMP (default=1)
+ -p cores -- number of cores for SMP
-s -- force System V IPC support (default=no)
-S -- skip Interrupt Critical Section Tests (default=no)
-l limit -- specify time limit (default is 'BSP dependent')
@@ -88,7 +88,7 @@ doTrace="no"
enable_display_adapter="no"
enable_network="no"
skip_interrupt_critical_section_tests="no"
-number_of_cores=1
+number_of_cores=
while getopts "vcCgGil:L:p:DsNT" OPT
do
@@ -117,7 +117,9 @@ shift $shiftcount
args=$*
case ${number_of_cores} in
+ "");;
[1-9]) ;;
+ [1-9][0-9]) ;;
0)
echo "Zero cores does not make sense"
exit 1
@@ -189,7 +191,7 @@ if [ ${bspSupportsDisplayAdapter} = "no" -a \
exit 1
fi
-if [ ${bspSupportsSMP} = "no" -a ${number_of_cores} != 1 ] ; then
+if [ ${bspSupportsSMP} = "no" -a ${number_of_cores:-1} != 1 ] ; then
echo "Simulator does not support multiple cores."
exit 1
fi