diff options
| author | Inderpreet Singh <[email protected]> | 2011-05-25 17:48:55 -0800 |
|---|---|---|
| committer | Inderpreet Singh <[email protected]> | 2011-05-25 17:48:55 -0800 |
| commit | 6b2e74983e0eaa2c7f9aed429c3be66ba22dbc0b (patch) | |
| tree | 5d2fe6bcac7e3686cdb50e7982bcac20c4d0adc5 /src | |
| parent | e1cffaf08733754ab55052b6a2729dae57665d29 (diff) | |
Bug fix for local memory address translation that was made in tm-test branch but missed in the last changelist for this (fermi) branch. (CL9267)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 9307]
Diffstat (limited to 'src')
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 166ba88..5c94fa3 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -835,7 +835,7 @@ unsigned shader_core_ctx::translate_local_memaddr( address_type localaddr, unsig assert(localaddr%4 == 0); // Required if accessing 4B per request, otherwise access will overflow into next thread's space for(unsigned i=0; i<datasize/4; i++) { address_type local_word = localaddr/4 + i; - address_type linear_address = local_word*max_concurrent_threads + thread_base; + address_type linear_address = local_word*max_concurrent_threads*4 + thread_base; translated_addrs[i] = linear_address; } return datasize/4; |
