(&mut self, addr: u64, data: u64)
| 339 | .flush_and_invalidate(); |
| 340 | } |
| 341 | |
| 342 | /// Get full snapshots for all three cache levels (params + line states + stats). |
| 343 | pub fn get_cache_snapshots( |
| 344 | &self, |
| 345 | ) -> ( |
| 346 | crate::memory::cache::CacheSnapshot, |
| 347 | crate::memory::cache::CacheSnapshot, |
| 348 | crate::memory::cache::CacheSnapshot, |
| 349 | ) { |
| 350 | let l1 = self.l1_cache.snapshot(); |
| 351 | let l2 = self.l1_cache.peek_next().snapshot(); |