()
| 50 | const fn is_write(self) -> bool { |
| 51 | matches!(self, Self::Store) |
| 52 | } |
| 53 | |
| 54 | const fn is_execute(self) -> bool { |
| 55 | matches!(self, Self::Execute) |
| 56 | } |
| 57 | |
| 58 | const fn access_fault(self, vaddr: u64) -> VmError { |
| 59 | match self { |
| 60 | Self::Load => VmError::LoadAccessFault(vaddr), |
| 61 | Self::Store => VmError::StoreAccessFault(vaddr), |
| 62 | Self::Execute => VmError::InstructionAccessFault(vaddr), |
| 63 | } |
| 64 | } |
| 65 |
nothing calls this directly
no outgoing calls
no test coverage detected