fn fetch8(&mut self, v_addr: u64) -> Result<u8, Trap> {
        let ev_addr = self.to_effective_address(v_addr);
        match self.to_physical_address(ev_addr, MemoryAccessType::Fetch) {
            Ok(p_addr) => match self.bus.read8(p_addr) {
                Ok(data) => Ok(data),
                Err(()) => Err(Trap {
                    exception: Exception::InstructionPageFault,
                    value: ev_addr,
                }),
            },
            Err(()) => Err(Trap {
                exception: Exception::InstructionPageFault,
                value: ev_addr,
            }),
        }
    }
/// Instruction fetch for unaliggned acccess when virtual addressing mode.
Instruction fetch for unaliggned acccess when virtual addressing mode.
Instruction fetch for unaliggned acccess when virtual addressing mode .
fn fetch8(&mut self, v_addr: u64) -> Result<u8, Trap> {
        let ev_addr = self.to_effective_address(v_addr);
        match self.to_physical_address(ev_addr, MemoryAccessType::Fetch) {
            Ok(p_addr) => match self.bus.read8(p_addr) {
                Ok(data) => Ok(data),
                Err(()) => Err(Trap {
                    exception: Exception::InstructionPageFault,
                    value: ev_addr,
                }),
            },
            Err(()) => Err(Trap {
                exception: Exception::InstructionPageFault,
                value: ev_addr,
            }),
        }
    }
fn fetch8 ( & mut self , v_addr : u64 ) -> Result < u8 , Trap > { let ev_addr = self . to_effective_address ( v_addr ) ; match self . to_physical_address ( ev_addr , MemoryAccessType :: Fetch ) { Ok ( p_addr ) => match self . bus . read8 ( p_addr ) { Ok ( data ) => Ok ( data ) , Err ( ( ) ) => Err ( Trap { exception : Exception :: InstructionPageFault , value : ev_addr , } ) , } , Err ( ( ) ) => Err ( Trap { exception : Exception :: InstructionPageFault , value : ev_addr , } ) , } }
Instruction fetch for unaliggned acccess when virtual addressing mode.
Instruction fetch for unaliggned acccess when virtual addressing mode .
&mut self
v_addr
u64