summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/dram.cc
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2018-06-15 16:46:14 -0400
committerMahmoud <[email protected]>2018-06-15 16:46:14 -0400
commit1e1c08286a505418d0e3ad1ee819e15881e9cb43 (patch)
tree0521ea6b3a8540a5dcd452c220d6da6a49e51564 /src/gpgpu-sim/dram.cc
parent738f04e8c31843855881b2e24ba318dce04be1cd (diff)
memory partition indexing
Diffstat (limited to 'src/gpgpu-sim/dram.cc')
-rw-r--r--src/gpgpu-sim/dram.cc2
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);