(sim_run): Add support for the "rawsid" protocol.
This commit is contained in:
parent
1c24292617
commit
fcf640ecb2
2 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-10-26 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* lib/sim-defs.exp (sim_run): Add support for the "rawsid"
|
||||||
|
protocol.
|
||||||
|
|
||||||
2004-09-13 DJ Delorie <dj@redhat.com>
|
2004-09-13 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
* lib/sim-defs.exp (run_sim_test): Add global_as_options,
|
* lib/sim-defs.exp (run_sim_test): Add global_as_options,
|
||||||
|
|
|
@ -109,12 +109,19 @@ proc sim_run { prog sim_opts prog_opts redir options } {
|
||||||
set sim "env $testcase_env $sim"
|
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" == "" } {
|
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 {
|
} 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]
|
set result [remote_wait host $testcase_timeout]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue