diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-11 11:47:19 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-11 11:47:19 -0400 |
| commit | 2dd62f45faaf6e749f21212c662c1308faf31554 (patch) | |
| tree | c9a44e322b9175191fbe98004c94c1152e059f16 /src/cuda-sim | |
| parent | 8019833f6c9d9552c70739dc2bf45e53655666ec (diff) | |
Move g_watchpoint_hits
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim')
| -rw-r--r-- | src/cuda-sim/memory.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cuda-sim/memory.cc b/src/cuda-sim/memory.cc index 9554f55..4b2acdf 100644 --- a/src/cuda-sim/memory.cc +++ b/src/cuda-sim/memory.cc @@ -28,6 +28,7 @@ #include "memory.h" #include <stdlib.h> #include "../debug.h" +#include "../../libcuda/gpgpu_context.h" template<unsigned BSIZE> memory_space_impl<BSIZE>::memory_space_impl( std::string name, unsigned hash_size ) { @@ -88,7 +89,7 @@ template<unsigned BSIZE> void memory_space_impl<BSIZE>::write( mem_addr_t addr, for( i=m_watchpoints.begin(); i!=m_watchpoints.end(); i++ ) { mem_addr_t wa = i->second; if( ((addr<=wa) && ((addr+length)>wa)) || ((addr>wa) && (addr < (wa+4))) ) - hit_watchpoint(i->first,thd,pI); + thd->get_gpu()->gpgpu_ctx->the_gpgpusim->g_the_gpu->hit_watchpoint(i->first,thd,pI); } } } |
