From 2dd62f45faaf6e749f21212c662c1308faf31554 Mon Sep 17 00:00:00 2001 From: Mengchi Zhang Date: Thu, 11 Jul 2019 11:47:19 -0400 Subject: Move g_watchpoint_hits Signed-off-by: Mengchi Zhang --- src/cuda-sim/memory.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cuda-sim/memory.cc') 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 #include "../debug.h" +#include "../../libcuda/gpgpu_context.h" template memory_space_impl::memory_space_impl( std::string name, unsigned hash_size ) { @@ -88,7 +89,7 @@ template void memory_space_impl::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); } } } -- cgit v1.3