summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.cc')
-rw-r--r--src/gpgpu-sim/gpu-cache.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc
index d6282d1..d1a9835 100644
--- a/src/gpgpu-sim/gpu-cache.cc
+++ b/src/gpgpu-sim/gpu-cache.cc
@@ -364,8 +364,8 @@ void cache_stats::clear(){
///
/// Zero out all current cache statistics
///
- for(std::vector<unsigned> &stats_vec : m_stats){
- std::fill(stats_vec.begin(), stats_vec.end(), 0);
+ for(unsigned i=0; i<NUM_MEM_ACCESS_TYPE; ++i){
+ std::fill(m_stats[i].begin(), m_stats[i].end(), 0);
}
}