From 0ed3c84c7b05d7d3c9d5f0e3f1c05c20afef93b9 Mon Sep 17 00:00:00 2001 From: Dam Sunwoo Date: Tue, 31 Jan 2012 07:46:04 -0800 Subject: util: implements "writefile" gem5 op to export file from guest to host filesystem Usage: m5 writefile 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. --- util/m5/m5ops.h | 1 + 1 file changed, 1 insertion(+) (limited to 'util/m5/m5ops.h') diff --git a/util/m5/m5ops.h b/util/m5/m5ops.h index bc2ae06be..f08524014 100644 --- a/util/m5/m5ops.h +++ b/util/m5/m5ops.h @@ -46,6 +46,7 @@ #define dumpstats_func 0x41 #define dumprststats_func 0x42 #define ckpt_func 0x43 +#define writefile_func 0x4F #define readfile_func 0x50 #define debugbreak_func 0x51 #define switchcpu_func 0x52 -- cgit v1.2.3