Skip to content

Commit

Permalink
Added guard to check if L2 is writeback or not (accel-sim#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas42singh authored Jun 22, 2024
1 parent 036b130 commit 6aa7ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpgpu-sim/l2cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6aa7ed1

Please sign in to comment.