summaryrefslogtreecommitdiff
path: root/src/debug.cc
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-10-09 09:22:16 -0800
committerTor Aamodt <[email protected]>2010-10-09 09:22:16 -0800
commit9aba275f0c2f9f7d125cb1364d991dbdcb6195c8 (patch)
tree1d4f1e522830cb2a4fb5161122aee331bddac4ac /src/debug.cc
parent4fce546cc9778b889bd07cf852be29b70a44f47d (diff)
refactoring: moving texture reference mappings into gpgpu_t
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7835]
Diffstat (limited to 'src/debug.cc')
-rw-r--r--src/debug.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug.cc b/src/debug.cc
index 928c057..236870c 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -62,7 +62,7 @@ void gpgpu_sim::gpgpu_debug()
if( b.is_watchpoint() ) {
unsigned addr = b.get_addr();
unsigned new_value;
- g_global_mem->read(addr,4,&new_value);
+ m_global_mem->read(addr,4,&new_value);
if( new_value != b.get_value() || g_watchpoint_hits.find(num) != g_watchpoint_hits.end() ) {
printf( "GPGPU-Sim PTX DBG: watch point %u triggered (old value=%x, new value=%x)\n",
num,b.get_value(),new_value );
@@ -156,8 +156,8 @@ void gpgpu_sim::gpgpu_debug()
unsigned addr;
sscanf(tok,"%x",&addr);
unsigned value;
- g_global_mem->read(addr,4,&value);
- g_global_mem->set_watch(addr,next_brkpt);
+ m_global_mem->read(addr,4,&value);
+ m_global_mem->set_watch(addr,next_brkpt);
breakpoints[next_brkpt++] = brk_pt(addr,value);
} else if( !strcmp(tok,"l") ) {
if( brk_thd == NULL ) {