Backwards-compatible wrapper: old callers without PMP info should use this. Uses a throwaway TLB, so it never benefits from caching (test/diagnostic use).
(
bus: &mut SystemBus,
pc: u64,
satp: u64,
priv_mode: PrivilegeMode,
mstatus: u64,
)
| 34 | mstatus: u64, |
| 35 | ) -> Result<u32, VmError> { |
| 36 | let mut tlb = mmu::Tlb::new(); |
| 37 | let ctx = mmu::TranslationContext::without_pmp(satp, priv_mode, mstatus); |
| 38 | fetch_with_pmp(bus, pc, ctx, &mut tlb) |
| 39 | } |