summaryrefslogtreecommitdiff
path: root/util/m5/m5op.h
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2009-02-26 19:29:16 -0500
committerAli Saidi <saidi@eecs.umich.edu>2009-02-26 19:29:16 -0500
commitd5ef9ee06b4e8be52069b46a65af3a0a7e0a9817 (patch)
treef9c710982a217b7261e963bee6c9ea152f2671b9 /util/m5/m5op.h
parent894925f1350409c40106aa6a0cc4d5cc31fa2b84 (diff)
downloadgem5-d5ef9ee06b4e8be52069b46a65af3a0a7e0a9817.tar.xz
CPA: Add m5ops for critical path annotation work.
Diffstat (limited to 'util/m5/m5op.h')
-rw-r--r--util/m5/m5op.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/util/m5/m5op.h b/util/m5/m5op.h
index 6377af8b7..b8f13da35 100644
--- a/util/m5/m5op.h
+++ b/util/m5/m5op.h
@@ -53,7 +53,27 @@ void m5_debugbreak(void);
void m5_switchcpu(void);
void m5_addsymbol(uint64_t addr, char *symbol);
void m5_panic(void);
-void m5_anbegin(uint64_t s);
-void m5_anwait(uint64_t s, uint64_t w);
+
+// These operations are for critical path annotation
+void m5a_bsm(char *sm, const void *id, int flags);
+void m5a_esm(char *sm);
+void m5a_begin(int flags, char *st);
+void m5a_end(void);
+void m5a_q(const void *id, char *q, int count);
+void m5a_dq(const void *id, char *q, int count);
+void m5a_wf(const void *id, char *q, char *sm, int count);
+void m5a_we(const void *id, char *q, char *sm, int count);
+void m5a_ws(const void *id, char *q, char *sm);
+void m5a_sq(const void *id, char *q, int count, int flags);
+void m5a_aq(const void *id, char *q, int count);
+void m5a_pq(const void *id, char *q, int count);
+void m5a_l(char *lsm, const void *id, char *sm);
+void m5a_identify(uint64_t id);
+uint64_t m5a_getid(void);
+
+#define M5_AN_FL_NONE 0x0
+#define M5_AN_FL_BAD 0x2
+#define M5_AN_FL_LINK 0x10
+#define M5_AN_FL_RESET 0x20
#endif // __M5OP_H__