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

Function make_read_only_cache

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

Source from the content-addressed store, hash-verified

22}
23
24fn make_read_only_cache() -> Cache<Ram> {
25 let ram = Ram::new(RAM_BASE, RAM_SIZE);
26 Cache::new(
27 CacheParams {
28 size: 256,
29 block_size: 64,
30 associativity: 1,
31 write_back: true,
32 read_only: true,
33 },
34 ram,
35 )
36}
37
38// --- Basic hit / miss counting ---
39

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected