summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.cc
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2017-10-27 22:35:52 -0400
committerMahmoud <[email protected]>2017-10-27 22:35:52 -0400
commitf23021ad8663636e1103bd75a742480cb6238435 (patch)
tree1310fb91f6c2d75f0123281d4357f0f9ffc23ff8 /src/gpgpu-sim/gpu-cache.cc
parentc1bb3638d2c3a8f1b86e0e952e12bb2ed7f1c0dc (diff)
add more statistics and chaging Pascal config
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.cc')
-rw-r--r--src/gpgpu-sim/gpu-cache.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc
index d199cca..32c2bb1 100644
--- a/src/gpgpu-sim/gpu-cache.cc
+++ b/src/gpgpu-sim/gpu-cache.cc
@@ -333,8 +333,10 @@ void tag_array::fill( unsigned index, unsigned time, mem_fetch* mf)
void tag_array::flush()
{
for (unsigned i=0; i < m_config.get_num_lines(); i++)
+ if(m_lines[i]->is_modified_line()) {
for(unsigned j=0; j < SECTOR_CHUNCK_SIZE; j++)
m_lines[i]->set_status(INVALID, mem_access_sector_mask_t().set(j)) ;
+ }
}
float tag_array::windowed_miss_rate( ) const