diff options
| author | Tim Rogers <[email protected]> | 2019-08-26 14:57:01 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-26 14:57:01 -0400 |
| commit | 6be23a1b36a3311c7dafc45a5e692e38cb351337 (patch) | |
| tree | 65583782519448ef56e6b60e8067d94526f2b149 /src/gpgpu-sim/addrdec.cc | |
| parent | fd91575e7dcc40653ea0279ef33d845d1d473ffa (diff) | |
| parent | a168a2c7224ea59c9ea7523be1f46893531bdc63 (diff) | |
Merge pull request #27 from mkhairy/dev
Merging a few latency fixes in the memory system
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 ca88ec9..b0db034 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() ) { |
