Method
write_word
(&mut self, addr: u64, data: u32)
Source from the content-addressed store, hash-verified
| 327 | let l2 = self.l1_cache.peek_next().stats().clone(); |
| 328 | let l3 = self.l1_cache.peek_next().peek_next().stats().clone(); |
| 329 | (l1, l2, l3) |
| 330 | } |
| 331 | |
| 332 | /// Flush all dirty cache lines to RAM then invalidate every level cold. |
| 333 | pub fn cold_cache_reset(&mut self) { |
| 334 | self.l1_cache.flush_and_invalidate(); |
| 335 | self.l1_cache.peek_next_mut().flush_and_invalidate(); |
| 336 | self.l1_cache |
| 337 | .peek_next_mut() |
| 338 | .peek_next_mut() |
| 339 | .flush_and_invalidate(); |
| 340 | } |
| 341 | |