diff options
| author | Ahmed El-Shafiey <[email protected]> | 2012-08-14 13:53:25 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:48:54 -0700 |
| commit | 0ce06988a6a13f9a8f48f2230b1b9727ee86081e (patch) | |
| tree | 08a4f172a71b3a9b0de5bea1b1c74f38d97036cb /src/cuda-sim/instructions.cc | |
| parent | 8f2b4a6f61ef30d86b9bae7c92ed62f223550a76 (diff) | |
Fixing bugs 169, 170, 171
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13761]
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 a7685aa..237bfd5 100644 --- a/src/cuda-sim/instructions.cc +++ b/src/cuda-sim/instructions.cc @@ -106,7 +106,9 @@ ptx_reg_t ptx_thread_info::get_operand_value( const operand_info &op, operand_in result = get_reg( op.get_symbol() ); } else if ( op.is_builtin()) { result = get_builtin( op.get_int(), op.get_addr_offset() ); - } else if ( op.is_memory_operand() ) { + } else if(op.is_immediate_address()){ + result = op.get_addr_offset(); + } else if ( op.is_memory_operand() ) { // a few options here... const symbol *sym = op.get_symbol(); const type_info *type = sym->type(); |
