Skip to main content

image_with_ro_caps

Function image_with_ro_caps 

Source
pub fn image_with_ro_caps(words: &[u32], caps: &[(u32, &[u8])]) -> Image
Expand description

Build an Image from raw words with several pinned read-only data caps, each (start, bytes) — for multi-cap read-only-cluster differential tests (e.g. two distinct caps sharing one 2 MiB cluster). Each cap takes its own cnode slot, so the recompiler resolves each as a separate PinnedCapRo MatRange with its own source PA, exactly as production does.