From 0ce06988a6a13f9a8f48f2230b1b9727ee86081e Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Tue, 14 Aug 2012 13:53:25 -0800 Subject: Fixing bugs 169, 170, 171 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13761] --- src/cuda-sim/instructions.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cuda-sim/instructions.cc') 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(); -- cgit v1.3