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

Method line_base_address

crates/virtual-machine/src/memory/cache.rs:127–129  ·  view source on GitHub ↗
(&self, tag: u64, index: u64)

Source from the content-addressed store, hash-verified

125
126 // Resolve an address to (set_idx, way_idx, was_miss). Misses fetch from the next
127 // level and write back dirty victims; hits and fills update the LRU age.
128 fn resolve_line(&mut self, addr: u64) -> Result<(usize, usize, bool), VmError> {
129 let (tag, index, _) = self.address_fields(addr);
130 let set_idx = index as usize;
131
132 // Hit?

Callers 2

flush_and_invalidateMethod · 0.80
resolve_lineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected