From 93a746eace850cbdd0a58990a099029243800fce Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 14 Mar 2016 16:56:53 +0100 Subject: exit if kernel not found --- scripts/nsim.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/nsim.sh') diff --git a/scripts/nsim.sh b/scripts/nsim.sh index 420c17114..04877b9e1 100755 --- a/scripts/nsim.sh +++ b/scripts/nsim.sh @@ -3,6 +3,11 @@ arch=$1 kernel=$2 +if [ ! -f $kernel ]; then + echo "Kernel $kernel not found" + exit 1 +fi + if [ "$arch" = "arcv1" ]; then nsimdrv -prop=nsim_isa_family=a700 -prop=nsim_isa_atomic_option=1 -prop=nsim_mmu=3 -prop=icache=32768,64,2,0 -prop=dcache=32768,64,4,0 -prop=nsim_isa_dpfp=none -prop=nsim_isa_shift_option=2 -prop=nsim_isa_swap_option=1 -prop=nsim_isa_bitscan_option=1 -prop=nsim_isa_sat=1 -prop=nsim_isa_mpy32=1 -prop=nsim_isa_enable_timer_0=1 -prop=nsim_isa_enable_timer_1=1 -prop=nsim_mem-dev=uart0 $kernel fi -- cgit v1.2.3