diff options
| author | Tor Aamodt <[email protected]> | 2011-01-02 16:12:59 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2011-01-02 16:12:59 -0800 |
| commit | 79edba0bcd839f6cbbb66ca5423b323e3f526f88 (patch) | |
| tree | 414d5660b059d82700ad724be1efdfde014e2dca /src/gpgpu-sim | |
| parent | 36397be09f07bf5cdb47913a7e5e1790d32c00ed (diff) | |
integrate
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8312]
Diffstat (limited to 'src/gpgpu-sim')
| -rw-r--r-- | src/gpgpu-sim/l2cache.cc | 11 |
1 files changed, 8 insertions, 3 deletions
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); |
