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/cuda-sim/memory.cc | |
| parent | b829a1c498a992f17b4ba7f00c898cfb6deeca03 (diff) | |
| parent | 7d1a848b4807aa1f8ed2bb0478f0a53bf09dcee7 (diff) | |
Merge branch 'dev-private' into dev-purdue-integration-trace
Diffstat (limited to 'src/cuda-sim/memory.cc')
| -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); } } } |
