summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.h
diff options
context:
space:
mode:
authorJRPAN <[email protected]>2021-05-17 17:35:06 -0400
committerJRPAN <[email protected]>2021-05-18 19:54:39 -0400
commitf7833519471ce92619bd1e4807ec07eb55aed76e (patch)
tree0a6a5a3cc523ff02c22142be667e1155a8e49487 /src/gpgpu-sim/gpu-cache.h
parent585dcf5dc05d6343314600114ebcea8c719e7423 (diff)
new configs - adaptive cache and cache write ratio
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.h')
-rw-r--r--src/gpgpu-sim/gpu-cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h
index 00c09ae..ccc935b 100644
--- a/src/gpgpu-sim/gpu-cache.h
+++ b/src/gpgpu-sim/gpu-cache.h
@@ -491,6 +491,7 @@ class cache_config {
m_data_port_width = 0;
m_set_index_function = LINEAR_SET_FUNCTION;
m_is_streaming = false;
+ m_wr_percent = 0;
}
void init(char *config, FuncCache status) {
cache_status = status;
@@ -754,6 +755,10 @@ class cache_config {
char *m_config_stringPrefL1;
char *m_config_stringPrefShared;
FuncCache cache_status;
+ unsigned m_wr_percent;
+ write_allocate_policy_t get_write_allocate_policy() {
+ return m_write_alloc_policy;
+ }
protected:
void exit_parse_error() {