From ca15d68452e8ad54f73c3f1c1247ba70eda8a56d Mon Sep 17 00:00:00 2001 From: Christian Geddes Date: Wed, 26 Jun 2019 17:02:30 -0500 Subject: Start simics in vexec for Axone by default Previously when you called 'hb startsimics' with the axone config we were not running in a vexec shell. This was causing the pool machines to crater if people were running 1 or 2 simics sessions. This commit will check if the '-nre' flag has been passed in, or if we are in a vexec shell already. If niether of those are true then we will boot simics in a vexec shell, if they are -nre has been passed or we are already inside a vexec then we will not boot simics inside a vexec. Change-Id: I17895bb109f18bbcc4b0daafe6c864531bf5994a Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/79573 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Roland Veloz Reviewed-by: Chen Du Reviewed-by: Daniel M. Crowell --- src/build/tools/hb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/build') diff --git a/src/build/tools/hb b/src/build/tools/hb index e086ad5b0..ce8f744e3 100755 --- a/src/build/tools/hb +++ b/src/build/tools/hb @@ -427,11 +427,19 @@ hb_startsimics() #export MYDIR=$bb/obj/ppc/hbfw/simics/startup.simics #then /runsim -m axone -o hb_script_to_run=$MYDIR export MY_DIR="${SANDBOXBASE}/obj/ppc/simu/scripts/hbfw" - export RUNSIMCMD="cd ${SANDBOXBASE}/simics/ && ./runsim -m ${MACHINE} hb_script_to_run=${MY_DIR}/startup.simics pnor_img=${MY_DIR}/../../../hbfw/img/axone.pnor sbe_seeprom_img=${SANDBOXBASE}/images/ppc/lab/flash/sbe_seeprom_p9a_10.bin.ecc num_procs=1 enable_lpc_console=TRUE" - echo "********** + # If '-nre' was passed in as a flag, then do not vexec + # also, if $POOL is defined, this indicates are already in + # a vexec shell so do not vexec + if [ "$*" = "-nre" ] || [ ! -z ${POOL} ]; then + VEXEC_STR=" vexec" + else + VEXEC_STR="" + fi + export RUNSIMCMD="cd ${SANDBOXBASE}/simics/ &&${VEXEC_STR} ./runsim -m ${MACHINE} hb_script_to_run=${MY_DIR}/startup.simics pnor_img=${MY_DIR}/../../../hbfw/img/axone.pnor sbe_seeprom_img=${SANDBOXBASE}/images/ppc/lab/flash/sbe_seeprom_p9a_10.bin.ecc num_procs=1 enable_lpc_console=TRUE" + echo "**********" echo $RUNSIMCMD - echo "********** - execute_in_sandbox "${RUNSIMCMD} ${SIMICSOPTIONS} $*" "ppc" + echo "**********" + execute_in_sandbox "${RUNSIMCMD} ${SIMICSOPTIONS}" "ppc" else execute_in_sandbox \ "start_simics -machine ${MACHINE} ${SIMICSOPTIONS} $*" "ppc" -- cgit v1.2.1