Zero all stats for this cache level only.
(&mut self)
| 88 | |
| 89 | /// Flush all dirty lines to the next level, then invalidate everything. |
| 90 | pub fn flush_and_invalidate(&mut self) { |
| 91 | for set_idx in 0..self.sets.len() { |
| 92 | for way_idx in 0..self.sets[set_idx].ways.len() { |
| 93 | let (need_flush, tag) = { |
| 94 | let line = &self.sets[set_idx].ways[way_idx]; |
| 95 | (line.valid && line.dirty, line.tag) |
nothing calls this directly
no outgoing calls
no test coverage detected