diff options
| author | JRPAN <[email protected]> | 2021-05-18 14:35:04 -0400 |
|---|---|---|
| committer | JRPAN <[email protected]> | 2021-05-18 19:51:44 -0400 |
| commit | 0601354a4d7f7f106e008b47cbc74097ec0a2a69 (patch) | |
| tree | 22d853e732ad5a4a24bdf5aac3b06af88c89ca7e /src/gpgpu-sim/shader.cc | |
| parent | 73069303b3dc0845e33b9ddafa7e6697fe3deb38 (diff) | |
Add WT to lazy_fetch_on_read
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 4b4c98d..22bd8e9 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -1989,9 +1989,10 @@ void ldst_unit::L1_latency_queue_cycle() { } else { assert(status == MISS || status == HIT_RESERVED); l1_latency_queue[j][0] = NULL; - if (mf_next->get_inst().is_store() && + if (m_config->m_L1D_config.get_write_policy() != WRITE_THROUGH && + mf_next->get_inst().is_store() && (m_config->m_L1D_config.get_write_allocate_policy() == FETCH_ON_WRITE || - m_config->m_L1D_config.get_write_allocate_policy() == LAZY_FETCH_ON_READ) && + m_config->m_L1D_config.get_write_allocate_policy() == LAZY_FETCH_ON_READ) && !was_writeallocate_sent(events)) { unsigned dec_ack = (m_config->m_L1D_config.get_mshr_type() == SECTOR_ASSOC) |
