diff options
author | Dam Sunwoo <dam.sunwoo@arm.com> | 2012-01-31 07:46:04 -0800 |
---|---|---|
committer | Dam Sunwoo <dam.sunwoo@arm.com> | 2012-01-31 07:46:04 -0800 |
commit | 0ed3c84c7b05d7d3c9d5f0e3f1c05c20afef93b9 (patch) | |
tree | 9663b1af4da7ee4c063fa0047da7cbf7e8a2b9de /util/m5/m5op.h | |
parent | af6aaf258171027af8d3cf0ef86dddff501a3ccb (diff) | |
download | gem5-0ed3c84c7b05d7d3c9d5f0e3f1c05c20afef93b9.tar.xz |
util: implements "writefile" gem5 op to export file from guest to host filesystem
Usage: m5 writefile <filename>
File will be created in the gem5 output folder with the identical filename.
Implementation is largely based on the existing "readfile" functionality.
Currently does not support exporting of folders.
Diffstat (limited to 'util/m5/m5op.h')
-rw-r--r-- | util/m5/m5op.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/m5/m5op.h b/util/m5/m5op.h index 38815e3c3..4e1d0b638 100644 --- a/util/m5/m5op.h +++ b/util/m5/m5op.h @@ -49,6 +49,7 @@ void m5_reset_stats(uint64_t ns_delay, uint64_t ns_period); void m5_dump_stats(uint64_t ns_delay, uint64_t ns_period); void m5_dumpreset_stats(uint64_t ns_delay, uint64_t ns_period); uint64_t m5_readfile(void *buffer, uint64_t len, uint64_t offset); +uint64_t m5_writefile(void *buffer, uint64_t len, uint64_t offset, const char *filename); void m5_debugbreak(void); void m5_switchcpu(void); void m5_addsymbol(uint64_t addr, char *symbol); |