diff options
| author | Shreyas Singh <[email protected]> | 2024-06-22 00:06:55 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-22 05:06:55 +0000 |
| commit | 6aa7ed16ed4c244bebaf8942f8666bbd94a2c757 (patch) | |
| tree | 35ad7cdf109de84224f4e25f8e95405763c03ef3 /src/gpgpu-sim | |
| parent | 036b1305fc825fe29c3174dd814c413407db8584 (diff) | |
Added guard to check if L2 is writeback or not (#73)
Diffstat (limited to 'src/gpgpu-sim')
| -rw-r--r-- | src/gpgpu-sim/l2cache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/l2cache.cc b/src/gpgpu-sim/l2cache.cc index 44d793c..5b63765 100644 --- a/src/gpgpu-sim/l2cache.cc +++ b/src/gpgpu-sim/l2cache.cc @@ -559,7 +559,7 @@ void memory_sub_partition::cache_cycle(unsigned cycle) { if (mf->get_access_type() == L1_WRBK_ACC) { m_request_tracker.erase(mf); delete mf; - } else { + } else if (m_config->m_L2_config.get_write_policy() == WRITE_BACK) { mf->set_reply(); mf->set_status(IN_PARTITION_L2_TO_ICNT_QUEUE, m_gpu->gpu_sim_cycle + m_gpu->gpu_tot_sim_cycle); |
