summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.cc
diff options
context:
space:
mode:
authormkhairy <[email protected]>2021-02-16 07:40:18 -0500
committerGitHub <[email protected]>2021-02-16 07:40:18 -0500
commit67f89abc740022b3feb67c4c77a92dfc256af009 (patch)
treea94f61e80f3ce46b2006078bd7fa14aa8925a205 /src/gpgpu-sim/gpu-cache.cc
parente6b0608f8861818934b02f35f32300d0014ec72f (diff)
parentf3a00778b98cf101c8052e9fe1dd2d4c08185b7e (diff)
Merge pull request #7 from JRPan/fix-was_writeback_sent
bug fix was_writeback_sent()
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.cc')
-rw-r--r--src/gpgpu-sim/gpu-cache.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc
index 177a6d9..8f7ccd5 100644
--- a/src/gpgpu-sim/gpu-cache.cc
+++ b/src/gpgpu-sim/gpu-cache.cc
@@ -485,8 +485,10 @@ bool was_writeback_sent(const std::list<cache_event> &events,
cache_event &wb_event) {
for (std::list<cache_event>::const_iterator e = events.begin();
e != events.end(); e++) {
- if ((*e).m_cache_event_type == WRITE_BACK_REQUEST_SENT) wb_event = *e;
- return true;
+ if ((*e).m_cache_event_type == WRITE_BACK_REQUEST_SENT) {
+ wb_event = *e;
+ return true;
+ }
}
return false;
}