fn fetch(&mut self, v_address: u64) -> Result<u8, Trap> {
		match self.translate_address(v_address, &MemoryAccessType::Execute) {
			Ok(p_address) => Ok(self.load_raw(p_address)),
			Err(()) => {
				return Err(Trap {
					trap_type: TrapType::InstructionPageFault,
					value: v_address,
				})
			}
		}
	}
/// Fetches an instruction byte. This method takes virtual address
/// and translates into physical address inside.
///
/// # Arguments
/// * `v_address` Virtual address
Fetches an instruction byte. This method takes virtual address
and translates into physical address inside.
Fetches an instruction byte . This method takes virtual address and translates into physical address inside .
fn fetch(&mut self, v_address: u64) -> Result<u8, Trap> {
		match self.translate_address(v_address, &MemoryAccessType::Execute) {
			Ok(p_address) => Ok(self.load_raw(p_address)),
			Err(()) => {
				return Err(Trap {
					trap_type: TrapType::InstructionPageFault,
					value: v_address,
				})
			}
		}
	}
fn fetch ( & mut self , v_address : u64 ) -> Result < u8 , Trap > { match self . translate_address ( v_address , & MemoryAccessType :: Execute ) { Ok ( p_address ) => Ok ( self . load_raw ( p_address ) ) , Err ( ( ) ) => { return Err ( Trap { trap_type : TrapType :: InstructionPageFault , value : v_address , } ) } } }
Fetches an instruction byte.
Fetches an instruction byte .
&mut self
v_address
u64