aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRob Savoye <rob@welcomehome.org>2003-02-21 06:51:53 +0000
committerRob Savoye <rob@welcomehome.org>2003-02-21 06:51:53 +0000
commitb2c7e2b4f7a9f0527e1ad8efbb747906ac06dfdf (patch)
treeec063bc0190841be1d91fd03fb76928d0b5a3f45 /config
parent42b7944dd6b70ec8db958d51e5f2f564c0027603 (diff)
downloaddejagnu-b2c7e2b4f7a9f0527e1ad8efbb747906ac06dfdf.zip
dejagnu-b2c7e2b4f7a9f0527e1ad8efbb747906ac06dfdf.tar.gz
dejagnu-b2c7e2b4f7a9f0527e1ad8efbb747906ac06dfdf.tar.bz2
2003-02-19 DJ Delorie <dj@redhat.com>
* config/sim.exp: Support both sid and rawsid protocols.
Diffstat (limited to 'config')
-rw-r--r--config/sim.exp14
1 files changed, 11 insertions, 3 deletions
diff --git a/config/sim.exp b/config/sim.exp
index 3143b31..2441a7c 100644
--- a/config/sim.exp
+++ b/config/sim.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 1993 - 2001 Free Software Foundation, Inc.
+# Copyright (C) 1993 - 2002, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -82,13 +82,21 @@ proc sim_load { dest prog args } {
set output "";
+ if { [board_info target sim,protocol] == "sid" } {
+ set cmd "-e \"set cpu-loader file [list $prog]\""
+ } elseif { [board_info target sim,protocol] == "rawsid" } {
+ set cmd "--load=$prog"
+ } else {
+ set cmd $prog
+ }
+
# Run the program with a limited amount of real time. While
# this isn't as nice as limiting the amount of CPU time, it
# will have to do.
if { $inpfile != "" } {
- set res [remote_spawn target "${prog} < $inpfile" "readonly"];
+ set res [remote_spawn target "${cmd} < $inpfile" "readonly"];
} else {
- set res [remote_spawn target "${prog}"];
+ set res [remote_spawn target "${cmd}"];
}
if { $res <= 0 } {