[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] support sid protocols
From: |
DJ Delorie |
Subject: |
[patch] support sid protocols |
Date: |
Wed, 19 Feb 2003 15:52:13 -0500 |
This patch is needed for dejagnu to work with the two types of SID
invocations.
2003-02-19 DJ Delorie <address@hidden>
* config/sim.exp: Support both sid and rawsid protocols.
Index: config/sim.exp
===================================================================
RCS file: /cvsroot/dejagnu/dejagnu/config/sim.exp,v
retrieving revision 1.2
diff -p -2 -r1.2 sim.exp
*** config/sim.exp 18 Feb 2001 05:12:07 -0000 1.2
--- config/sim.exp 19 Feb 2003 20:46:40 -0000
***************
*** 1,3 ****
! # Copyright (C) 1993 - 2001 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
--- 1,3 ----
! # Copyright (C) 1993 - 2001, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
*************** proc sim_load { dest prog args } {
*** 83,93 ****
set output "";
# 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"];
} else {
! set res [remote_spawn target "${prog}"];
}
--- 83,101 ----
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 "${cmd} < $inpfile" "readonly"];
} else {
! set res [remote_spawn target "${cmd}"];
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch] support sid protocols,
DJ Delorie <=