Struct moras::simulator::instruction::InstHandlerArg
source · pub(super) struct InstHandlerArg<'a> {
pub sim: Ptr<RISCVSimulator>,
pub args: &'a Vec<RISCV::Immediate>,
pub history: Ptr<History>,
}
Fields§
§sim: Ptr<RISCVSimulator>
§args: &'a Vec<RISCV::Immediate>
§history: Ptr<History>
Implementations§
source§impl<'a> InstHandlerArg<'a>
impl<'a> InstHandlerArg<'a>
fn reg(&self, index: RISCV::Immediate) -> u32
fn reg_mut(&self, index: RISCV::Immediate) -> &mut u32
fn pc(&self) -> u32
fn set_pc(&self, addr: u32) -> bool
fn pc_step(&self)
fn request_input(&self, wait_status: WaitStatus) -> Result<(), String>
fn output(&self, output: &str) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for InstHandlerArg<'a>
impl<'a> !RefUnwindSafe for InstHandlerArg<'a>
impl<'a> Send for InstHandlerArg<'a>
impl<'a> Sync for InstHandlerArg<'a>
impl<'a> Unpin for InstHandlerArg<'a>
impl<'a> !UnwindSafe for InstHandlerArg<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request