summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.cc
diff options
context:
space:
mode:
authorInderpreet Singh <[email protected]>2011-12-25 22:21:01 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:19:01 -0700
commitb916cd600d109938a1621345bfc3c46da4bff4c6 (patch)
tree5391fb6f1e659f24b479ce9a3a1f44641783552a /src/abstract_hardware_model.cc
parent508c322551ccb5dfd2969344bcacde5ca759cf99 (diff)
Fix for Bug 123: Use of constant in shader_core_ctx::func_exec_inst function
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11227]
Diffstat (limited to 'src/abstract_hardware_model.cc')
-rw-r--r--src/abstract_hardware_model.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/abstract_hardware_model.cc b/src/abstract_hardware_model.cc
index a7da2ff..19c3091 100644
--- a/src/abstract_hardware_model.cc
+++ b/src/abstract_hardware_model.cc
@@ -316,6 +316,7 @@ void warp_inst_t::memory_coalescing_arch_13( bool is_write, mem_access_type acce
// local memory can only be accessed in 4B chunks by one thread
unsigned data_size_coales = (space.get_type() == local_space || space.get_type() == param_space_local ) ? 4 : data_size;
unsigned num_accesses = (space.get_type() == local_space || space.get_type() == param_space_local ) ? data_size/4 : 1;
+ assert(num_accesses <= MAX_ACCESSES_PER_INSN_PER_THREAD);
for(unsigned access=0; access<num_accesses; access++) {
new_addr_type addr = m_per_scalar_thread[thread].memreqaddr[access];