diff options
| author | Mahmoud <[email protected]> | 2018-06-22 16:58:42 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2018-06-22 16:58:42 -0400 |
| commit | c05dc90da35fc2bd9dd42da9626bf3a60e2c9e8d (patch) | |
| tree | 0030cedf19a61280e979b02046b30d38deacb2e5 /src/gpgpu-sim/dram.cc | |
| parent | 5adbc9c4afad276a5d8590f3c53b789003ae4dcf (diff) | |
| parent | 1e1c08286a505418d0e3ad1ee819e15881e9cb43 (diff) | |
Merge branch 'dev-purdue-integration' of https://github.rcac.purdue.edu/abdallm/gpgpu-sim_distribution into dev-purdue-integration-trace
Diffstat (limited to 'src/gpgpu-sim/dram.cc')
| -rw-r--r-- | src/gpgpu-sim/dram.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/dram.cc b/src/gpgpu-sim/dram.cc index a57508c..92aa819 100644 --- a/src/gpgpu-sim/dram.cc +++ b/src/gpgpu-sim/dram.cc @@ -204,7 +204,7 @@ dram_req_t::dram_req_t( class mem_fetch *mf, unsigned banks, unsigned dram_bnk_i } else if(dram_bnk_indexing_policy == 1) { int lbank = log2(banks); - bk = tlx.bk ^ (((1<<lbank)-1) & tlx.row); + bk = tlx.bk ^ (tlx.row & ((1<<lbank)-1)); } else assert(1); |
