summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJRPAN <[email protected]>2021-03-02 16:33:30 -0500
committerJRPAN <[email protected]>2021-05-18 16:33:07 -0400
commite05fa4a676c2b082f1ebb34d051f43ad05d4a82c (patch)
treec592991e32149e479fe84b0e4b3dc958dc1a33fa /src
parentbb19c0cbfa2dc8082496a279f37f48695b7c4185 (diff)
little bug fix - flush()
Diffstat (limited to 'src')
-rw-r--r--src/gpgpu-sim/gpu-cache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc
index ded8004..8d44f15 100644
--- a/src/gpgpu-sim/gpu-cache.cc
+++ b/src/gpgpu-sim/gpu-cache.cc
@@ -426,9 +426,10 @@ 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++)
+ for (unsigned j = 0; j < SECTOR_CHUNCK_SIZE; j++) {
m_lines[i]->set_status(INVALID, mem_access_sector_mask_t().set(j));
m_dirty--;
+ }
}
is_used = false;