From b90f5f6d42e91fe5e093ed2656c1b64fc3257469 Mon Sep 17 00:00:00 2001 From: Tayler Hetherington Date: Sun, 16 Jun 2013 12:26:07 -0800 Subject: Review: 33001. Updating/cleaning up the cache statistics. Moving the statistics from the tag array to the cache access functions. Added cache_stats class to record all memory accesses and access outcomes to each cache. Removed L2CacheAccessBreakdown_t. Cleaned up power_stats to reflect changes in the cache stats. Updated the cache stats printing. This will cause the performance gold files to change as the output format has been changed. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16452] --- src/gpgpu-sim/l2cache.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/gpgpu-sim/l2cache.h') diff --git a/src/gpgpu-sim/l2cache.h b/src/gpgpu-sim/l2cache.h index 31b9c4a..6ef00a7 100644 --- a/src/gpgpu-sim/l2cache.h +++ b/src/gpgpu-sim/l2cache.h @@ -88,10 +88,8 @@ public: unsigned &n_wr, unsigned &n_req) const; - void set_L2cache_power_stats(unsigned &n_read_access, - unsigned &n_read_miss, - unsigned &n_write_access, - unsigned &n_write_miss) const; + void accumulate_L2cache_stats(class cache_stats &l2_stats) const; + void get_L2cache_sub_stats(struct cache_sub_stats &css) const; private: // data -- cgit v1.3