|
|
@ -2,14 +2,14 @@ use std::fmt::Debug; |
|
|
|
|
|
|
|
|
|
|
|
pub use eval_res::EvalRes; |
|
|
|
pub use eval_res::EvalRes; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use crate::asm::data::literal::Value; |
|
|
|
|
|
|
|
use crate::asm::data::Mask; |
|
|
|
use crate::asm::error::Error; |
|
|
|
use crate::asm::error::Error; |
|
|
|
use crate::asm::instr::Op; |
|
|
|
use crate::asm::instr::Op; |
|
|
|
use crate::asm::parse::arg_parser::ArgParser; |
|
|
|
use crate::asm::parse::arg_parser::ArgParser; |
|
|
|
use crate::runtime::fault::Fault; |
|
|
|
use crate::runtime::fault::Fault; |
|
|
|
use crate::runtime::run_thread::state::RunState; |
|
|
|
use crate::runtime::run_thread::state::RunState; |
|
|
|
use crate::runtime::run_thread::ThreadInfo; |
|
|
|
use crate::runtime::run_thread::ThreadInfo; |
|
|
|
use crate::asm::data::literal::Value; |
|
|
|
|
|
|
|
use crate::asm::data::Mask; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mod eval_res; |
|
|
|
mod eval_res; |
|
|
|
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ pub trait CrsnExtension: Debug + Send + Sync + 'static { |
|
|
|
#[allow(unused)] ti: &ThreadInfo, |
|
|
|
#[allow(unused)] ti: &ThreadInfo, |
|
|
|
#[allow(unused)] state: &mut RunState, |
|
|
|
#[allow(unused)] state: &mut RunState, |
|
|
|
#[allow(unused)] handle: Value, |
|
|
|
#[allow(unused)] handle: Value, |
|
|
|
#[allow(unused)] mask : Mask |
|
|
|
#[allow(unused)] mask: Mask, |
|
|
|
) -> Result<Option<Value>, Fault> { |
|
|
|
) -> Result<Option<Value>, Fault> { |
|
|
|
// Default impl - we do not support reading this object
|
|
|
|
// Default impl - we do not support reading this object
|
|
|
|
Ok(None) |
|
|
|
Ok(None) |
|
|
@ -62,7 +62,7 @@ pub trait CrsnExtension: Debug + Send + Sync + 'static { |
|
|
|
#[allow(unused)] ti: &ThreadInfo, |
|
|
|
#[allow(unused)] ti: &ThreadInfo, |
|
|
|
#[allow(unused)] state: &mut RunState, |
|
|
|
#[allow(unused)] state: &mut RunState, |
|
|
|
#[allow(unused)] handle: Value, |
|
|
|
#[allow(unused)] handle: Value, |
|
|
|
#[allow(unused)] mask : Mask |
|
|
|
#[allow(unused)] mask: Mask, |
|
|
|
) -> Result<Option<()>, Fault> { |
|
|
|
) -> Result<Option<()>, Fault> { |
|
|
|
// Default impl - we do not support writing this object
|
|
|
|
// Default impl - we do not support writing this object
|
|
|
|
Ok(None) |
|
|
|
Ok(None) |
|
|
|