(&mut self, addr: u64, data: u16)
| 315 | self.rom.size() as usize |
| 316 | } |
| 317 | |
| 318 | /// Cheap stats-only read, no allocation. Called every step. |
| 319 | pub fn get_cache_stats( |
| 320 | &self, |
| 321 | ) -> ( |
| 322 | crate::memory::cache::CacheStats, |
| 323 | crate::memory::cache::CacheStats, |
| 324 | crate::memory::cache::CacheStats, |
| 325 | ) { |
| 326 | let l1 = self.l1_cache.stats().clone(); |
| 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) |