From 58459bf7a55010eccf9940cfdb53cbc854b0989c Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Sat, 16 Oct 2010 11:59:28 -0800 Subject: 1. moving address decoding into a class (and out of cache entirely) 2. moving DRAM timing parameters into memory_config class 3. removing some likely useless statistics 4. other cleaning up of code passing CUDA 3.1 regression [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7868] --- 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 b2bafb2..b192986 100644 --- a/src/gpgpu-sim/l2cache.h +++ b/src/gpgpu-sim/l2cache.h @@ -167,11 +167,9 @@ private: class memory_partition_unit { public: - memory_partition_unit( unsigned partition_id, struct memory_config *config); + memory_partition_unit( unsigned partition_id, struct memory_config *config, class memory_stats_t *stats ); ~memory_partition_unit(); - void set_stats( class memory_stats_t *stats ); - void cache_cycle(); bool has_cache() { return m_L2cache != NULL; } @@ -224,7 +222,7 @@ private: // data unsigned m_id; - struct memory_config *m_config; + const struct memory_config *m_config; class dram_t *m_dram; class cache_t *m_L2cache; -- cgit v1.3