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

Method ram_size

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

Expose RAM size for bounds check (also needed by route)

(&self)

Source from the content-addressed store, hash-verified

132 stats.read_misses.saturating_add(stats.write_misses)
133}
134
135impl SystemBus {
136 pub fn new(rom_data: Vec<u8>) -> Self {
137 let rom = Rom::new(ROM_BASE, rom_data);
138
139 // Create three-level cache hierarchy
140 // L3: 8MB, 64-byte blocks, 16-way set associative
141 let ram = Ram::new(RAM_BASE, RAM_SIZE_DEFAULT);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected