summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_ir.cc
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2012-11-02 04:00:26 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:21 -0700
commit9af6f86d0f06c2ca1b117d358009b91a646b0e83 (patch)
tree10509be824e0ba4d41e826138ae7225c9c3fd43c /src/cuda-sim/ptx_ir.cc
parentd0b377ded0c804580a78f2327b84e6e2ea1ee069 (diff)
Fixed the timing model for LDU instruction, before it was not recognized as a memory instruction in the timing model.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14538]
Diffstat (limited to 'src/cuda-sim/ptx_ir.cc')
-rw-r--r--src/cuda-sim/ptx_ir.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_ir.cc b/src/cuda-sim/ptx_ir.cc
index 26c9a00..29f6ff4 100644
--- a/src/cuda-sim/ptx_ir.cc
+++ b/src/cuda-sim/ptx_ir.cc
@@ -1151,7 +1151,7 @@ ptx_instruction::ptx_instruction( int opcode,
}
m_scalar_type = scalar_type;
m_space_spec = space_spec;
- if( ( opcode == ST_OP || opcode == LD_OP ) && (space_spec == undefined_space) ) {
+ if( ( opcode == ST_OP || opcode == LD_OP || opcode == LDU_OP ) && (space_spec == undefined_space) ) {
m_space_spec = generic_space;
}
for( std::vector<operand_info>::const_iterator i=m_operands.begin(); i!=m_operands.end(); ++i) {