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

Function read_only_cache_rejects_writes

crates/virtual-machine/tests/vm_cache.rs:171–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169 associativity: 2,
170 write_back: false,
171 read_only: false,
172 },
173 ram,
174 );
175 c.write_byte(RAM_BASE, 0xCD)
176 .expect("cache access should succeed");
177 // Bypass the cache by reading directly from the underlying RAM via peek_next
178 let direct = c.peek_next().peek_byte(RAM_BASE).unwrap_or(0);

Callers

nothing calls this directly

Calls 2

make_read_only_cacheFunction · 0.85
write_byteMethod · 0.45

Tested by

no test coverage detected