diff options
| author | Roland Green <[email protected]> | 2019-08-26 15:14:22 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-26 15:14:22 -0400 |
| commit | b88c9e9a545960b7fcc1c373b60005612296158b (patch) | |
| tree | 1e32c07e932b3d3cc6b977e29a1327274f4f29a8 /src/gpgpu-sim/addrdec.cc | |
| parent | 2a6788b59055b5ce694882a282af0cc6311854d4 (diff) | |
| parent | 6be23a1b36a3311c7dafc45a5e692e38cb351337 (diff) | |
Merge branch 'dev' into fix_warnings
Diffstat (limited to 'src/gpgpu-sim/addrdec.cc')
| -rw-r--r-- | src/gpgpu-sim/addrdec.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpgpu-sim/addrdec.cc b/src/gpgpu-sim/addrdec.cc index 09bbc3c..e3713f3 100644 --- a/src/gpgpu-sim/addrdec.cc +++ b/src/gpgpu-sim/addrdec.cc @@ -167,6 +167,8 @@ void linear_to_raw_address_translation::addrdec_tlx(new_addr_type addr, addrdec_ } case RANDOM: { + //This is an unrealistic hashing using software hashtable + //we generate a random set for each memory address and save the value in a big hashtable for future reuse new_addr_type chip_address = (addr>>ADDR_CHIP_S); tr1_hash_map<new_addr_type,unsigned>::const_iterator got = address_random_interleaving.find (chip_address); if ( got == address_random_interleaving.end() ) { |
