summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJRPAN <[email protected]>2021-05-11 22:45:44 -0400
committerJRPAN <[email protected]>2021-05-18 16:33:08 -0400
commit73069303b3dc0845e33b9ddafa7e6697fe3deb38 (patch)
treed4191b1cdca89dfb7c7502fccafe7c42f71a83f8 /src
parent994fb19e160e3897b5662fb7e6946a3802fde794 (diff)
remove runtime check of dirty counter
Diffstat (limited to 'src')
-rw-r--r--src/gpgpu-sim/gpu-cache.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc
index e88a646..9e1db8b 100644
--- a/src/gpgpu-sim/gpu-cache.cc
+++ b/src/gpgpu-sim/gpu-cache.cc
@@ -251,22 +251,6 @@ enum cache_request_status tag_array::probe(new_addr_type addr, unsigned &idx,
unsigned long long valid_timestamp = (unsigned)-1;
bool all_reserved = true;
- unsigned count = 0;
- if (m_config.m_wr_percent == (unsigned)25) {
- for (unsigned i = 0; i < m_config.m_nset * m_config.m_assoc; i++) {
- if (m_lines[i]->is_modified_line()) {
- m_lines[i]->is_modified_line();
- count++;
- }
- }
- if (count != m_dirty) {
- printf("count = %u, m_dirty = %u",count,m_dirty);
- fflush(stdout);
- assert(0 && "m_dirty miss match");
- printf("count = %u, m_dirty = %u",count,m_dirty);
-
- }
- }
// check for hit or pending hit
for (unsigned way = 0; way < m_config.m_assoc; way++) {
unsigned index = set_index * m_config.m_assoc + way;