From 5921d9d73d32e2eec38a4b154c4c71759ffb8a5f Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Mon, 15 Apr 2013 12:19:36 -0800 Subject: 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] --- src/gpgpu-sim/gpu-cache.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gpgpu-sim/gpu-cache.h') 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() -- cgit v1.3