MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / aligned_fast_path_roundtrip

Function aligned_fast_path_roundtrip

crates/virtual-machine/src/memory/cache.rs:417–432  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415 self.next.load_image(bytes);
416 for set in &mut self.sets {
417 for line in &mut set.ways {
418 line.valid = false;
419 line.dirty = false;
420 line.tag = 0;
421 line.lru_age = 0;
422 }
423 }
424 }
425}
426
427impl<Next: MemoryAccess> Cache<Next> {
428 pub fn snapshot(&self) -> CacheSnapshot {
429 let sets = self
430 .sets
431 .iter()
432 .map(|s| {
433 s.ways
434 .iter()
435 .map(|w| CacheLineSnapshot {

Callers

nothing calls this directly

Calls 4

make_cacheFunction · 0.70
write_doublewordMethod · 0.45
write_wordMethod · 0.45
write_halfwordMethod · 0.45

Tested by

no test coverage detected