summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJRPAN <[email protected]>2021-02-15 16:03:51 -0500
committerJRPAN <[email protected]>2021-02-17 12:50:55 -0500
commit51d99259845a051a32e45763bdf3005b4dff74b5 (patch)
tree8255ae734a6c09244a8634450be9f66d7b1a9d02
parent67f89abc740022b3feb67c4c77a92dfc256af009 (diff)
fix hash funciton
-rw-r--r--src/gpgpu-sim/gpu-cache.cc4
-rw-r--r--src/gpgpu-sim/gpu-cache.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc
index 8f7ccd5..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);
}
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;
};