diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-05-29 15:24:31 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-05-29 15:44:27 -0500 |
commit | 4856251217b0c51f50c9fc508f51a7cbf7984e1c (patch) | |
tree | 088c0e8193a0f00b1ba190946d91f9dcf3883bf7 /sim-scripts/pc386.in | |
parent | rtems-gdb-macros-4.11: Update to work with current RTEMS git head (diff) | |
download | rtems-testing-4856251217b0c51f50c9fc508f51a7cbf7984e1c.tar.bz2 |
sim-scripts: Add initial support for specifying number of cores
Attempted to add support to pc386 (untested).
Diffstat (limited to 'sim-scripts/pc386.in')
-rw-r--r-- | sim-scripts/pc386.in | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sim-scripts/pc386.in b/sim-scripts/pc386.in index 40998c0..d0c4472 100644 --- a/sim-scripts/pc386.in +++ b/sim-scripts/pc386.in @@ -3,6 +3,7 @@ # bspUsesGDBSimulator="no" +bspSupportsSMP="yes" runBSP=NOT_OVERRIDDEN if [ ! -r ${runBSP} ] ; then runBSP=notset @@ -75,9 +76,15 @@ runARGS() else GRAPHIC_ARG="-vga cirrus" fi -# core2duo with newer qemu for smp support -# 486 or pentium for older qemu - echo "-m 512 -boot a -cpu 486 \ + + # core2duo with newer qemu for SMP support + # 486 or pentium for non-SMP + if [ ${number_of_cores} = 1 ] ; then + CPUARGS="-cpu 486" + else + CPUARGS="-cpu core2duo -smp ${number_of_cores}" + fi + echo "-m 512 -boot a ${CPUARGS} \ -fda ${fd0Image} -hda fat:${hd0Dir} ${COVERAGE_ARG} \ -monitor null ${GRAPHIC_ARG} -serial ${SERIAL_ARG} --no-reboot" } |