summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJRPAN <[email protected]>2021-02-12 16:13:46 -0500
committerJRPAN <[email protected]>2021-02-15 12:29:00 -0500
commitf3a00778b98cf101c8052e9fe1dd2d4c08185b7e (patch)
tree606772735e2a7f279c14469498616eb7e23a5069 /src
parentb1fdc6da937e638fc1cf735829613f1037bbbf1a (diff)
bug fix was_writeback_sent
Diffstat (limited to 'src')
-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 af22c4c..eb95004 100644
--- a/src/gpgpu-sim/gpu-cache.cc
+++ b/src/gpgpu-sim/gpu-cache.cc
@@ -496,8 +496,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;
}