util: Add a "writefile" unit test to the m5 utility.
[gem5.git] / util / m5 / src / m5_mmap.h
index d32857f0b1d3c2e6e94eb6f4b43117343c406e89..09cddb29c66384f2edd0fb93bb101b2891253bba 100644 (file)
 #ifndef __UTIL_M5_MMAP_H__
 #define __UTIL_M5_MMAP_H__
 
-#include <fcntl.h>
-#include <sys/mman.h>
+#include <stdint.h>
 
-extern void *m5_mem;
+#ifdef __cplusplus
+extern "C" {
+#endif
 
+extern void *m5_mem;
+extern uint64_t m5op_addr;
+extern const char *m5_mmap_dev;
 void map_m5_mem();
 
+#ifdef __cplusplus
+}
 #endif
+
+#endif // __UTIL_M5_MMAP_H__