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

Method get_cache_snapshots

crates/virtual-machine/src/bus.rs:169–180  ·  view source on GitHub ↗

Get full snapshots for all three cache levels (params + line states + stats).

(
        &self,
    )

Source from the content-addressed store, hash-verified

167 size: 4096, // 4KB
168 block_size: 64,
169 associativity: 2,
170 write_back: true,
171 read_only: false,
172 };
173 let l1_cache = Cache::new(l1_params, l2_cache);
174
175 let uart = Uart::new();
176 let clint = Clint::new();
177 let plic = Plic::new();
178 let framebuffer = Framebuffer::new();
179 let keyboard = Keyboard::new();
180 Self {
181 rom,
182 l1_cache,
183 uart,

Callers 1

cache_snapshotsMethod · 0.45

Calls 2

peek_nextMethod · 0.80
snapshotMethod · 0.45

Tested by

no test coverage detected