diff options
| author | Mahmoud Khairy A. Abdallah <[email protected]> | 2021-02-25 16:26:06 -0500 |
|---|---|---|
| committer | Mahmoud Khairy A. Abdallah <[email protected]> | 2021-02-25 16:26:06 -0500 |
| commit | deb5eb527582bdd75326b33c2bb1f1936d30348d (patch) | |
| tree | 38117806425d45ef697f15b5e612683d280c8a0a /src/gpgpu-sim | |
| parent | b430b36911b48228ed7eb77457cc378261151a13 (diff) | |
| parent | 2f966452a7c7c4a3ebb3a0c78965ff5c0afe2745 (diff) | |
Merge branch 'dev' of https://github.com/accel-sim/gpgpu-sim_distribution into HEAD
Diffstat (limited to 'src/gpgpu-sim')
| -rw-r--r-- | src/gpgpu-sim/gpu-cache.cc | 10 | ||||
| -rw-r--r-- | src/gpgpu-sim/gpu-cache.h | 8 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc index 177a6d9..1c36d22 100644 --- a/src/gpgpu-sim/gpu-cache.cc +++ b/src/gpgpu-sim/gpu-cache.cc @@ -63,8 +63,8 @@ unsigned l1d_cache_config::set_bank(new_addr_type addr) const { // For sector cache, we select one sector per bank (sector interleaving) // This is what was found in Volta (one sector per bank, sector interleaving) // otherwise, line interleaving - return cache_config::hash_function(addr, l1_banks, l1_banks_byte_interleaving, - m_l1_banks_log2, + return cache_config::hash_function(addr, l1_banks, l1_banks_byte_interleaving_log2, + l1_banks_log2, l1_banks_hashing_function); } @@ -485,8 +485,10 @@ bool was_writeback_sent(const std::list<cache_event> &events, cache_event &wb_event) { for (std::list<cache_event>::const_iterator e = events.begin(); e != events.end(); e++) { - if ((*e).m_cache_event_type == WRITE_BACK_REQUEST_SENT) wb_event = *e; - return true; + if ((*e).m_cache_event_type == WRITE_BACK_REQUEST_SENT) { + wb_event = *e; + return true; + } } return false; } diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h index 26369c3..00c09ae 100644 --- a/src/gpgpu-sim/gpu-cache.h +++ b/src/gpgpu-sim/gpu-cache.h @@ -817,15 +817,15 @@ class l1d_cache_config : public cache_config { l1d_cache_config() : cache_config() {} unsigned set_bank(new_addr_type addr) const; void init(char *config, FuncCache status) { - m_banks_byte_interleaving_log2 = LOGB2(l1_banks_byte_interleaving); - m_l1_banks_log2 = LOGB2(l1_banks); + l1_banks_byte_interleaving_log2 = LOGB2(l1_banks_byte_interleaving); + l1_banks_log2 = LOGB2(l1_banks); cache_config::init(config, status); } unsigned l1_latency; unsigned l1_banks; - unsigned m_l1_banks_log2; + unsigned l1_banks_log2; unsigned l1_banks_byte_interleaving; - unsigned m_banks_byte_interleaving_log2; + unsigned l1_banks_byte_interleaving_log2; unsigned l1_banks_hashing_function; }; |
