diff options
| author | Amruth <[email protected]> | 2018-04-19 18:13:44 -0700 |
|---|---|---|
| committer | Amruth <[email protected]> | 2018-04-19 18:13:44 -0700 |
| commit | 60017ca1ddbe844a93f631fe2b86bc4101850037 (patch) | |
| tree | f5caa8e773ece5956e4fc5ddfa9589e1e2a1c604 /src/cuda-sim/instructions.cc | |
| parent | 8ea33c977b26cfe96beb98cdda289b81b8fda899 (diff) | |
Crash when array pointers are passed
Diffstat (limited to 'src/cuda-sim/instructions.cc')
| -rw-r--r-- | src/cuda-sim/instructions.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc index 0025c52..e53aaab 100644 --- a/src/cuda-sim/instructions.cc +++ b/src/cuda-sim/instructions.cc @@ -154,7 +154,9 @@ ptx_reg_t ptx_thread_info::get_operand_value( const operand_info &op, operand_in } else if ( op.is_local() ) { result.u64 = op.get_symbol()->get_address(); } else if ( op.is_function_address() ) { - result.u64 = (size_t)op.get_symbol()->get_pc(); + result.u64 = (size_t)op.get_symbol()->get_pc(); + } else if ( op.is_param_kernel()) { + result.u64 = op.get_symbol()->get_address(); } else { const char *name = op.name().c_str(); printf("GPGPU-Sim PTX: ERROR ** get_operand_value : unknown operand type for %s\n", name ); |
