There is a script parameter for the system object. That is the file that is
read when you call m5 readfile. For execfile, you'll have to dig into the
code in util/m5 and in the magic instruction code (src/sim?).

Jason

On Tue, Mar 27, 2018, 11:04 AM Ciro Santilli <[email protected]>
wrote:

> https://stackoverflow.com/questions/49516399
>
> I expect `m5 readfile` will read a file from the host, and `m5
> execfile` will execute a file from host, but the documentation is
> scarce and I couldn't get them to work.
>
> Maybe the path is determined by `readfile=` in `m5out/config.ini`, but
> I don't know how to modify that setting when using `fs.py`; when I
> relaunch gem5 it overwrites that file.
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to