summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_loader.cc
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-11 01:47:04 -0400
committerMengchi Zhang <[email protected]>2019-07-11 01:47:04 -0400
commite6f475eaa9c27cd601033c37321466010299dabf (patch)
treed34b5264256fb154aa3722364030ad5a89a102f1 /src/cuda-sim/ptx_loader.cc
parentcf13f05351636d178ee30c3a57872c33ef5a4e47 (diff)
Move g_inst_lookup
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_loader.cc')
-rw-r--r--src/cuda-sim/ptx_loader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_loader.cc b/src/cuda-sim/ptx_loader.cc
index 2bf464c..891828a 100644
--- a/src/cuda-sim/ptx_loader.cc
+++ b/src/cuda-sim/ptx_loader.cc
@@ -90,7 +90,7 @@ void gpgpu_context::print_ptx_file( const char *p, unsigned source_num, const ch
while ( (*u != '\n') && (*u != '\0') ) u++;
unsigned last = (*u == '\0');
*u = '\0';
- const ptx_instruction *pI = ptx_instruction_lookup(filename,n);
+ const ptx_instruction *pI = ptx_parser->ptx_instruction_lookup(filename,n);
char pc[64];
if( pI && pI->get_PC() )
snprintf(pc,64,"%4u", pI->get_PC() );