diff options
| author | Mahmoud <[email protected]> | 2019-08-30 18:46:42 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2019-08-30 18:46:42 -0400 |
| commit | 41da287aced4587c6005725ac4ca9b9809c2e08f (patch) | |
| tree | 46cf9ec7739635fbb32098e1f77682ffa46b0da2 /src/debug.cc | |
| parent | b829a1c498a992f17b4ba7f00c898cfb6deeca03 (diff) | |
| parent | 7d1a848b4807aa1f8ed2bb0478f0a53bf09dcee7 (diff) | |
Merge branch 'dev-private' into dev-purdue-integration-trace
Diffstat (limited to 'src/debug.cc')
| -rw-r--r-- | src/debug.cc | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/debug.cc b/src/debug.cc index ae15760..c00ff9e 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -36,28 +36,7 @@ #include <stdio.h> #include <string.h> -class watchpoint_event { -public: - watchpoint_event() - { - m_thread=NULL; - m_inst=NULL; - } - watchpoint_event(const ptx_thread_info *thd, const ptx_instruction *pI) - { - m_thread=thd; - m_inst = pI; - } - const ptx_thread_info *thread() const { return m_thread; } - const ptx_instruction *inst() const { return m_inst; } -private: - const ptx_thread_info *m_thread; - const ptx_instruction *m_inst; -}; - -std::map<unsigned,watchpoint_event> g_watchpoint_hits; - -void hit_watchpoint( unsigned watchpoint_num, ptx_thread_info *thd, const ptx_instruction *pI ) +void gpgpu_sim::hit_watchpoint( unsigned watchpoint_num, ptx_thread_info *thd, const ptx_instruction *pI ) { g_watchpoint_hits[watchpoint_num]=watchpoint_event(thd,pI); } |
