Andreas Sandberg has uploaded this change for review. ( https://gem5-review.googlesource.com/4265

Change subject: util: Move m5op.h to the shared include directory
......................................................................

util: Move m5op.h to the shared include directory

The header file with C declarations for m5ops is sometimes needed by
code outside of the util/m5 directory. Move this file to the shared
include directory. Note that code that needs to call m5ops still need
to link with libm5.a or implement their own trampolines.

Change-Id: I36a3f459ed71593e38b869dc2b1302c810f92276
Signed-off-by: Andreas Sandberg <andreas.sandb...@arm.com>
Reviewed-by: Jose Marinho <jose.mari...@arm.com>
---
R include/gem5/m5ops.h
M util/m5/m5.c
2 files changed, 4 insertions(+), 4 deletions(-)



diff --git a/util/m5/m5op.h b/include/gem5/m5ops.h
similarity index 97%
rename from util/m5/m5op.h
rename to include/gem5/m5ops.h
index 3a507e1..61dfa23 100644
--- a/util/m5/m5op.h
+++ b/include/gem5/m5ops.h
@@ -29,8 +29,8 @@
  *          Ali Saidi
  */

-#ifndef __M5OP_H__
-#define __M5OP_H__
+#ifndef __GEM5_M5OP_H__
+#define __GEM5_M5OP_H__

 #ifdef __cplusplus
 extern "C" {
@@ -90,4 +90,4 @@
 #ifdef __cplusplus
 }
 #endif
-#endif // __M5OP_H__
+#endif // __GEM5_M5OP_H__
diff --git a/util/m5/m5.c b/util/m5/m5.c
index 5b6c7a6..82ef73b 100644
--- a/util/m5/m5.c
+++ b/util/m5/m5.c
@@ -57,7 +57,7 @@
 #include <sys/types.h>
 #include <unistd.h>

-#include "m5op.h"
+#include <gem5/m5ops.h>

 void *m5_mem = NULL;


--
To view, visit https://gem5-review.googlesource.com/4265
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I36a3f459ed71593e38b869dc2b1302c810f92276
Gerrit-Change-Number: 4265
Gerrit-PatchSet: 1
Gerrit-Owner: Andreas Sandberg <andreas.sandb...@arm.com>
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to