summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan <[email protected]>2018-05-16 13:36:15 -0700
committerJonathan <[email protected]>2018-05-16 13:36:15 -0700
commit8b34db6513e20335e06c8b40ead6d181e3ebba44 (patch)
treeeb0731f18f3eae42509fee43ffb2a269865a67e7
parent0f8c407eea99e1622486127912a83ef3e0dcf397 (diff)
is_reg change
-rw-r--r--.gitignore4
-rw-r--r--src/cuda-sim/instructions.cc6
2 files changed, 8 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 887b605..428abce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,3 +29,7 @@ cuobjdump_to_ptxplus/sass_parser.output
build/*
*.swp
+*~
+cscope*
+tags
+
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc
index e53aaab..8a3539b 100644
--- a/src/cuda-sim/instructions.cc
+++ b/src/cuda-sim/instructions.cc
@@ -2366,9 +2366,11 @@ void decode_space( memory_space_t &space, ptx_thread_info *thread, const operand
type_info_key ti = t->get_key();
if( ti.is_param_kernel() )
space = param_space_kernel;
- else if( ti.is_param_local() ) {
+ else if( ti.is_param_local() )
space = param_space_local;
- } else {
+ else if( ti.is_reg() )
+ space = param_space_kernel;
+ else {
printf("GPGPU-Sim PTX: ERROR ** cannot resolve .param space for '%s'\n", s->name().c_str() );
abort();
}