pub struct IllegalEcallSystemInstructionHandler;Expand description
System instruction handler that results in illegal instruction for all system calls and does nothing for other system instructions
Trait Implementations§
Source§impl Clone for IllegalEcallSystemInstructionHandler
impl Clone for IllegalEcallSystemInstructionHandler
Source§fn clone(&self) -> IllegalEcallSystemInstructionHandler
fn clone(&self) -> IllegalEcallSystemInstructionHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for IllegalEcallSystemInstructionHandler
impl Default for IllegalEcallSystemInstructionHandler
Source§fn default() -> IllegalEcallSystemInstructionHandler
fn default() -> IllegalEcallSystemInstructionHandler
Returns the “default value” for a type. Read more
Source§impl<Reg, Regs, Memory, PC, CustomError> SystemInstructionHandler<Reg, Regs, Memory, PC, CustomError> for IllegalEcallSystemInstructionHandlerwhere
Reg: Register,
Regs: RegisterFile<Reg>,
PC: ProgramCounter<Reg::Type, Memory, CustomError>,
impl<Reg, Regs, Memory, PC, CustomError> SystemInstructionHandler<Reg, Regs, Memory, PC, CustomError> for IllegalEcallSystemInstructionHandlerwhere
Reg: Register,
Regs: RegisterFile<Reg>,
PC: ProgramCounter<Reg::Type, Memory, CustomError>,
Source§fn handle_ecall(
&mut self,
_regs: &mut Regs,
_memory: &mut Memory,
program_counter: &mut PC,
) -> Result<ControlFlow<()>, ExecutionError<Reg::Type, CustomError>>
fn handle_ecall( &mut self, _regs: &mut Regs, _memory: &mut Memory, program_counter: &mut PC, ) -> Result<ControlFlow<()>, ExecutionError<Reg::Type, CustomError>>
Handle an
ecall instructionSource§fn handle_fence(&mut self, pred: u8, succ: u8)
fn handle_fence(&mut self, pred: u8, succ: u8)
Handle a
fence instructionSource§fn handle_fence_tso(&mut self)
fn handle_fence_tso(&mut self)
Handle a
fence.tso instructionSource§fn handle_ebreak(&mut self, regs: &mut Regs, memory: &mut Memory, pc: Reg::Type)
fn handle_ebreak(&mut self, regs: &mut Regs, memory: &mut Memory, pc: Reg::Type)
Handle an
ebreak instruction. Read moreimpl Copy for IllegalEcallSystemInstructionHandler
Auto Trait Implementations§
impl Freeze for IllegalEcallSystemInstructionHandler
impl RefUnwindSafe for IllegalEcallSystemInstructionHandler
impl Send for IllegalEcallSystemInstructionHandler
impl Sync for IllegalEcallSystemInstructionHandler
impl Unpin for IllegalEcallSystemInstructionHandler
impl UnsafeUnpin for IllegalEcallSystemInstructionHandler
impl UnwindSafe for IllegalEcallSystemInstructionHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more