From: Nick Clifton Date: Tue, 26 Oct 2004 08:07:59 +0000 (+0000) Subject: (sim_run): Add support for the "rawsid" protocol. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9a5f933b1082616ccae3e78592781ad96fb4be6c;p=pf3gnuchains%2Fpf3gnuchains3x.git (sim_run): Add support for the "rawsid" protocol. --- diff --git a/sim/testsuite/ChangeLog b/sim/testsuite/ChangeLog index 7200d39fbe..f461c15c57 100644 --- a/sim/testsuite/ChangeLog +++ b/sim/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-10-26 Nick Clifton + + * lib/sim-defs.exp (sim_run): Add support for the "rawsid" + protocol. + 2004-09-13 DJ Delorie * lib/sim-defs.exp (run_sim_test): Add global_as_options, diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index 6a88b9c510..07aa6cca98 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -109,12 +109,19 @@ proc sim_run { prog sim_opts prog_opts redir options } { set sim "env $testcase_env $sim" } - send_log "$sim $always_opts $SIMFLAGS $sim_opts $prog $prog_opts\n" + if { [board_info target sim,protocol] == "sid" } { + set cmd "" + set sim_opts "$sim_opts -e \"set cpu-loader file [list ${prog}]\"" + } else { + set cmd "$prog" + } + + send_log "$sim $always_opts $SIMFLAGS $sim_opts $cmd $prog_opts\n" if { "$redir" == "" } { - remote_spawn host "$sim $always_opts $SIMFLAGS $sim_opts $prog $prog_opts" + remote_spawn host "$sim $always_opts $SIMFLAGS $sim_opts $cmd $prog_opts" } else { - remote_spawn host "$sim $always_opts $SIMFLAGS $sim_opts $prog $prog_opts $redir" writeonly + remote_spawn host "$sim $always_opts $SIMFLAGS $sim_opts $cmd $prog_opts $redir" writeonly } set result [remote_wait host $testcase_timeout]