diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/m5/m5op.h | 1 | ||||
-rw-r--r-- | util/m5/m5op_x86.S | 1 | ||||
-rw-r--r-- | util/m5/m5ops.h | 4 |
3 files changed, 5 insertions, 1 deletions
diff --git a/util/m5/m5op.h b/util/m5/m5op.h index 34dabce01..d9fcb3231 100644 --- a/util/m5/m5op.h +++ b/util/m5/m5op.h @@ -57,6 +57,7 @@ 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_togglesync(void); void m5_addsymbol(uint64_t addr, char *symbol); void m5_panic(void); void m5_work_begin(uint64_t workid, uint64_t threadid); diff --git a/util/m5/m5op_x86.S b/util/m5/m5op_x86.S index 2e950c10f..f38803a25 100644 --- a/util/m5/m5op_x86.S +++ b/util/m5/m5op_x86.S @@ -83,3 +83,4 @@ TWO_BYTE_OP(m5_addsymbol, addsymbol_func) TWO_BYTE_OP(m5_panic, panic_func) TWO_BYTE_OP(m5_work_begin, work_begin_func) TWO_BYTE_OP(m5_work_end, work_end_func) +TWO_BYTE_OP(m5_togglesync, togglesync_func) diff --git a/util/m5/m5ops.h b/util/m5/m5ops.h index 51dcb5d07..99dc81251 100644 --- a/util/m5/m5ops.h +++ b/util/m5/m5ops.h @@ -77,6 +77,7 @@ #define syscall_func 0x60 // Reserved for user #define pagefault_func 0x61 // Reserved for user +#define togglesync_func 0x62 // These operations are for critical path annotation #define annotate_func 0x55 @@ -121,7 +122,8 @@ M5OP(m5_addsymbol, addsymbol_func, 0); \ M5OP(m5_panic, panic_func, 0); \ M5OP(m5_work_begin, work_begin_func, 0); \ - M5OP(m5_work_end, work_end_func, 0); + M5OP(m5_work_end, work_end_func, 0); \ + M5OP(m5_togglesync, togglesync_func, 0); #define FOREACH_M5_ANNOTATION \ M5_ANNOTATION(m5a_bsm, an_bsm); \ |