diff options
| author | sspenst <[email protected]> | 2016-07-11 11:40:23 -0700 |
|---|---|---|
| committer | sspenst <[email protected]> | 2016-07-11 11:40:23 -0700 |
| commit | e08fc0294fe919a198477b771a414c5102430188 (patch) | |
| tree | 0618194ca5e1ba13690fcc83521506f442dcab34 /src/cuda-sim/instructions.cc | |
| parent | adc311951d67b0685ebf2fab4ce6410f96f0039a (diff) | |
Changed sst return value to be the address instead of index offset
Diffstat (limited to 'src/cuda-sim/instructions.cc')
| -rw-r--r-- | src/cuda-sim/instructions.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc index b5a3db4..b401bef 100644 --- a/src/cuda-sim/instructions.cc +++ b/src/cuda-sim/instructions.cc @@ -3805,7 +3805,8 @@ void sst_impl( const ptx_instruction *pI, ptx_thread_info *thread ) } } // store the number of nonzero elements in the array - data.s64 = offset-1; + data = thread->get_operand_value(src1, dst, type, thread, 1); + data.s64 += 4*(offset-1); thread->set_operand_value(dst, data, type, thread, pI); // fill the rest of the array with zeros (dst should always have a 0 in it) |
