summaryrefslogtreecommitdiff
path: root/src/debug.cc
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-11 11:47:19 -0400
committerMengchi Zhang <[email protected]>2019-07-11 11:47:19 -0400
commit2dd62f45faaf6e749f21212c662c1308faf31554 (patch)
treec9a44e322b9175191fbe98004c94c1152e059f16 /src/debug.cc
parent8019833f6c9d9552c70739dc2bf45e53655666ec (diff)
Move g_watchpoint_hits
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/debug.cc')
-rw-r--r--src/debug.cc23
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);
}