summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.h
diff options
context:
space:
mode:
authorAhmed El-Shafiey <[email protected]>2013-04-15 12:19:36 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:46 -0700
commit5921d9d73d32e2eec38a4b154c4c71759ffb8a5f (patch)
tree09716a218ebe0ffa1910f94c8c2811ce69dc7f3b /src/gpgpu-sim/gpu-cache.h
parent77cdf0905eea68880c7ef15b041e7ebfad301c2f (diff)
make sure L1 cache is flushed at a configuration change between kernels, even if flushing L1 cache between kernels option is not set
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15834]
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.h')
-rw-r--r--src/gpgpu-sim/gpu-cache.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h
index dd56d9f..59e56bc 100644
--- a/src/gpgpu-sim/gpu-cache.h
+++ b/src/gpgpu-sim/gpu-cache.h
@@ -134,8 +134,9 @@ public:
m_config_stringPrefL1 = NULL;
m_config_stringPrefShared = NULL;
}
- void init(char * config)
+ void init(char * config, FuncCache status)
{
+ cache_status= status;
assert( config );
char rp, wp, ap, mshr_type, wap;
@@ -235,10 +236,11 @@ public:
{
return addr & ~(m_line_sz-1);
}
-
+ FuncCache get_cache_status() {return cache_status;}
char *m_config_string;
char *m_config_stringPrefL1;
char *m_config_stringPrefShared;
+ FuncCache cache_status;
protected:
void exit_parse_error()