From 69bbd0ca79822bed8d4150d805d04ed5dfa0acb1 Mon Sep 17 00:00:00 2001 From: Erin Date: Tue, 15 Aug 2023 17:21:55 +0200 Subject: [PATCH] SPID --- hbvm/src/mem/softpaging/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hbvm/src/mem/softpaging/mod.rs b/hbvm/src/mem/softpaging/mod.rs index b50640e6..db06a4eb 100644 --- a/hbvm/src/mem/softpaging/mod.rs +++ b/hbvm/src/mem/softpaging/mod.rs @@ -65,6 +65,7 @@ impl<'p, PfH: HandlePageFault> Memory for SoftPagedMem<'p, PfH> { .map_err(StoreError) } + #[inline(always)] unsafe fn prog_read(&mut self, addr: u64) -> Option { let addr = addr as usize; self.program @@ -72,6 +73,7 @@ impl<'p, PfH: HandlePageFault> Memory for SoftPagedMem<'p, PfH> { .map(|x| x.as_ptr().cast::().read()) } + #[inline(always)] unsafe fn prog_read_unchecked(&mut self, addr: u64) -> T { self.program.as_ptr().add(addr as _).cast::().read() }