summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreyas Singh <[email protected]>2024-06-22 00:06:55 -0500
committerGitHub <[email protected]>2024-06-22 05:06:55 +0000
commit6aa7ed16ed4c244bebaf8942f8666bbd94a2c757 (patch)
tree35ad7cdf109de84224f4e25f8e95405763c03ef3
parent036b1305fc825fe29c3174dd814c413407db8584 (diff)
Added guard to check if L2 is writeback or not (#73)
-rw-r--r--src/gpgpu-sim/l2cache.cc2
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);