summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJRPAN <[email protected]>2021-05-21 15:12:43 -0400
committerJRPAN <[email protected]>2021-05-21 15:12:43 -0400
commitb814c52fe9c4538669d845c5f05b247348f6fd1d (patch)
treedca4d006b62d2d3b1d583bdbc8a270c076396bac
parentf665ad5a49620b47118cbf6d578b469155e2a500 (diff)
cast to float - dirty line percentage
-rw-r--r--src/gpgpu-sim/gpu-cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc
index 23c5592..7e7d2ad 100644
--- a/src/gpgpu-sim/gpu-cache.cc
+++ b/src/gpgpu-sim/gpu-cache.cc
@@ -282,7 +282,7 @@ enum cache_request_status tag_array::probe(new_addr_type addr, unsigned &idx,
// percentage of dirty lines in the cache
// number of dirty lines / total lines in the cache
float dirty_line_percentage =
- (float) (m_dirty / (m_config.m_nset * m_config.m_assoc )) * 100;
+ ((float) m_dirty / (m_config.m_nset * m_config.m_assoc )) * 100;
if (!line->is_modified_line() ||
dirty_line_percentage >= m_config.m_wr_percent) {
// if number of dirty lines in the cache is greater than