Adam,

You could do this reasonably easily in two ways. A) Like you said modify the m5term program to send a script in. The problem with this is the simulation wouldn't be deterministic unless you waited for an m5term connection before continuing the simulation (this could be easily done however).

B) the readfile option is implemented using what we term an m5 instruction. These are instructions that are encoded in the reserved instruction space in the Alpha ISA. The startup script on the image executes this readfile instruction with an argument register pointing to a buffer in the simulated memory space and the simulator copies the text in the readfile option into the simulated systems buffer. The startup script then executes this. Depending on what exactly you're trying to do, you could have a program running on the image that does this readfile call later after you restore from a checkpoint (perhaps by adding an additional instruction that returns true immediately after restoring from a checkpoint and once read returns 0.

Hope this helps,
Ali


On Apr 26, 2006, at 9:33 PM, Adam Kaplan wrote:

Hello all,

I was wondering if anyone has been successful in creating some kind of
batch-file of Linux/M5 commands and sending these to the full-system
shell (possibly via the m5term program). I don't believe I can use a .rcS
file for this specific set of commands, as I want to run them after
restarting simulation from a checkpoint. (In this case, the checkpoint
was taken well after system-boot.)

A quick examination of the m5term source does not indicate any sort
of batch input option.  Is there any other way to do this
(and if not, would it be too difficult for me to hack it into the
m5term?)

                                Thanks!
                                        Adam


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users

Reply via email to