summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.h
diff options
context:
space:
mode:
authormkhairy <[email protected]>2019-09-23 15:29:49 -0400
committerGitHub <[email protected]>2019-09-23 15:29:49 -0400
commite5264f1dbcdadfb7614797ebff013f163dd10a6a (patch)
tree156f3b64414a0a8cf6a6619852c392ad80c77d6e /src/gpgpu-sim/gpu-cache.h
parentdba877b45fe11187d56904bbd169f4e0a5ad0586 (diff)
parentcaea1a724ebd32a9c11e2af25e79862f84baf9d6 (diff)
Merge pull request #32 from mkhairy/dev
Dev
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.h')
-rw-r--r--src/gpgpu-sim/gpu-cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h
index d4bc9b4..2a37876 100644
--- a/src/gpgpu-sim/gpu-cache.h
+++ b/src/gpgpu-sim/gpu-cache.h
@@ -677,6 +677,10 @@ class cache_config {
assert(m_valid);
return MAX_DEFAULT_CACHE_SIZE_MULTIBLIER * m_nset * original_m_assoc;
}
+ unsigned get_max_assoc() const {
+ assert(m_valid);
+ return MAX_DEFAULT_CACHE_SIZE_MULTIBLIER * original_m_assoc;
+ }
void print(FILE *fp) const {
fprintf(fp, "Size = %d B (%d Set x %d-way x %d byte line)\n",
m_line_sz * m_nset * m_assoc, m_nset, m_assoc, m_line_sz);