Steve,

It depends on whether or not you want to run it in full system mode. If you do, you will need to add it to your disk image (simply mount the example image and copy the binary over to it), create a .rcS script, and add it to m5/configs/common/Benchmarks.py. If you look in m5/configs/boot/ and look at some of the .rcS scripts you should get an idea how to do this. If you want to run in systemcall emulation mode you only need to pass your benchmark as a parameter using -c. Check out the help options for the example config scripts.

-Tony

On 02/28/2011 06:09 PM, Stevenson Jian wrote:
Hi everyone,
I wrote a simple 1 file c program to test the thrashing behavior of a cache. I crossed-compiled it against ALPHA and have the static binary executable. How do I run this c program on M5? I notice that there are 2 posts on the mailing list that asked a similar question. But they were both 5 years ago and the script names and website links referenced by the posts are no longer existent. Could someone tell me what steps to take to run my own program? What scripts should I modify?
Thanks,
Steve


_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to