From 79edba0bcd839f6cbbb66ca5423b323e3f526f88 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Sun, 2 Jan 2011 16:12:59 -0800 Subject: integrate [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8312] --- src/gpgpu-sim/l2cache.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/gpgpu-sim') diff --git a/src/gpgpu-sim/l2cache.cc b/src/gpgpu-sim/l2cache.cc index 5c19c32..eadac4b 100644 --- a/src/gpgpu-sim/l2cache.cc +++ b/src/gpgpu-sim/l2cache.cc @@ -176,9 +176,14 @@ void memory_partition_unit::cache_cycle( unsigned cycle ) if( !write_sent ) { // L2 cache replies assert(!read_sent); - mf->set_reply(); - mf->set_status(IN_PARTITION_L2_TO_ICNT_QUEUE,gpu_sim_cycle+gpu_tot_sim_cycle); - m_L2_icnt_queue->push(mf); + if( mf->get_access_type() == L1_WRBK_ACC ) { + m_request_tracker.erase(mf); + delete mf; + } else { + mf->set_reply(); + mf->set_status(IN_PARTITION_L2_TO_ICNT_QUEUE,gpu_sim_cycle+gpu_tot_sim_cycle); + m_L2_icnt_queue->push(mf); + } m_icnt_L2_queue->pop(); } else { assert(write_sent); -- cgit v1.3