summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSuchita Pati <[email protected]>2018-05-21 00:27:02 +0000
committertgrogers-purdue <[email protected]>2018-05-21 00:27:02 +0000
commite881b14ad986065aeac2f69c872533bbaafe2ac2 (patch)
tree01018bb79717704756e0110fdae04bd1b67bf871 /src
parent1b6389ab70211b622f02b149bfb20ae68a2e2552 (diff)
parent6e082e89d461272627617ee544e27943241d607c (diff)
Merged in suchitapati/gpgpusim-cudnn-5-18-18 (pull request #8)
Support for ld operand in register space Approved-by: tgrogers-purdue <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/cuda-sim/instructions.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc
index e53aaab..583a49a 100644
--- a/src/cuda-sim/instructions.cc
+++ b/src/cuda-sim/instructions.cc
@@ -2368,7 +2368,11 @@ void decode_space( memory_space_t &space, ptx_thread_info *thread, const operand
space = param_space_kernel;
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();
}