Struct simics::api::interface::interfaces::X86RegAccessInterface

source ·
pub struct X86RegAccessInterface {
    obj: *mut ConfObject,
    interface: *mut x86_reg_access_interface,
}
Expand description

Automatically generated structure for the interface

Fields§

§obj: *mut ConfObject§interface: *mut x86_reg_access_interface

Implementations§

source§

impl X86RegAccessInterface

source

pub fn get_gpr(&mut self, index: c_uint) -> Result<uint64>

Automatically generated method for the interface

source

pub fn set_gpr(&mut self, index: c_uint, val: uint64) -> Result<()>

Automatically generated method for the interface

source

pub fn get_rip(&mut self) -> Result<uint64>

Automatically generated method for the interface

source

pub fn set_rip(&mut self, rip: uint64) -> Result<()>

Automatically generated method for the interface

source

pub fn get_rflags(&mut self) -> Result<uint64>

Automatically generated method for the interface

source

pub fn set_rflags(&mut self, rflags: uint64) -> Result<()>

Automatically generated method for the interface

source

pub fn set_status_flags(&mut self, flags: uint16) -> Result<()>

Automatically generated method for the interface

source

pub fn get_seg(&mut self, n: x86_seg_t) -> Result<x86_seg_reg_t>

Automatically generated method for the interface

source

pub fn set_seg(&mut self, n: x86_seg_t, seg: x86_seg_reg_t) -> Result<()>

Automatically generated method for the interface

source

pub fn get_system_seg( &mut self, n: x86_system_seg_t, ) -> Result<x86_system_seg_reg_t>

Automatically generated method for the interface

source

pub fn set_system_seg( &mut self, n: x86_system_seg_t, seg: x86_system_seg_reg_t, ) -> Result<()>

Automatically generated method for the interface

source

pub fn get_cr(&mut self, n: x86_cr_t) -> Result<uint64>

Automatically generated method for the interface

source

pub fn set_cr(&mut self, n: x86_cr_t, val: uint64) -> Result<()>

Automatically generated method for the interface

source

pub fn get_efer(&mut self) -> Result<uint64>

Automatically generated method for the interface

source

pub fn set_efer(&mut self, efer: uint64) -> Result<()>

Automatically generated method for the interface

source

pub fn get_xcr(&mut self, n: x86_xcr_t) -> Result<uint64>

Automatically generated method for the interface

source

pub fn set_xcr(&mut self, n: x86_xcr_t, val: uint64) -> Result<()>

Automatically generated method for the interface

source

pub fn get_freg(&mut self, index: c_uint) -> Result<x86_fpu_reg_t>

Automatically generated method for the interface

source

pub fn set_freg(&mut self, index: c_uint, freg: x86_fpu_reg_t) -> Result<()>

Automatically generated method for the interface

source

pub fn get_fpu_env(&mut self) -> Result<x86_fpu_env_t>

Automatically generated method for the interface

source

pub fn set_fpu_env(&mut self, state: x86_fpu_env_t) -> Result<()>

Automatically generated method for the interface

source

pub fn get_xmm(&mut self, index: c_uint) -> Result<xmm_reg_t>

Automatically generated method for the interface

source

pub fn set_xmm(&mut self, index: c_uint, val: xmm_reg_t) -> Result<()>

Automatically generated method for the interface

source

pub fn get_ymm(&mut self, index: c_uint) -> Result<ymm_reg_t>

Automatically generated method for the interface

source

pub fn set_ymm(&mut self, index: c_uint, val: ymm_reg_t) -> Result<()>

Automatically generated method for the interface

source

pub fn get_mxcsr(&mut self) -> Result<uint32>

Automatically generated method for the interface

source

pub fn set_mxcsr(&mut self, mxcsr: uint32) -> Result<()>

Automatically generated method for the interface

source

pub fn get_dr(&mut self, n: x86_dr_t) -> Result<uint64>

Automatically generated method for the interface

source

pub fn set_dr(&mut self, n: x86_dr_t, val: uint64) -> Result<()>

Automatically generated method for the interface

source

pub fn get_in_smm(&mut self) -> Result<bool>

Automatically generated method for the interface

source

pub fn set_in_smm(&mut self, val: bool) -> Result<()>

Automatically generated method for the interface

source

pub fn get_smm_base(&mut self) -> Result<uint64>

Automatically generated method for the interface

source

pub fn set_smm_base(&mut self, val: uint64) -> Result<()>

Automatically generated method for the interface

source

pub fn get_monitor_info(&mut self) -> Result<x86_monitor_info_t>

Automatically generated method for the interface

source

pub fn set_monitor_info(&mut self, val: x86_monitor_info_t) -> Result<()>

Automatically generated method for the interface

source

pub fn get_mwait_info(&mut self) -> Result<x86_mwait_info_t>

Automatically generated method for the interface

source

pub fn set_mwait_info(&mut self, val: x86_mwait_info_t) -> Result<()>

Automatically generated method for the interface

source

pub fn get_activity_state(&mut self) -> Result<x86_activity_t>

Automatically generated method for the interface

source

pub fn set_activity_state(&mut self, val: x86_activity_t) -> Result<()>

Automatically generated method for the interface

source

pub fn get_interruptibility_state(&mut self) -> Result<x86_intstate_t>

Automatically generated method for the interface

source

pub fn set_interruptibility_state(&mut self, val: x86_intstate_t) -> Result<()>

Automatically generated method for the interface

source

pub fn get_pending_debug_exc(&mut self) -> Result<x86_pending_debug_exc_t>

Automatically generated method for the interface

source

pub fn set_pending_debug_exc( &mut self, val: x86_pending_debug_exc_t, ) -> Result<()>

Automatically generated method for the interface

source

pub fn get_xmode_info(&mut self) -> Result<x86_xmode_info_t>

Automatically generated method for the interface

source

pub fn get_exec_mode(&mut self) -> Result<x86_exec_mode_t>

Automatically generated method for the interface

source

pub fn get_mxcsr_mask(&mut self) -> Result<uint32>

Automatically generated method for the interface

source

pub fn get_ext_state_dirty_bits(&mut self) -> Result<uint64>

Automatically generated method for the interface

source

pub fn or_ext_state_dirty_bits(&mut self, dirty_bits: uint64) -> Result<()>

Automatically generated method for the interface

source

pub fn and_ext_state_dirty_bits(&mut self, dirty_bits: uint64) -> Result<()>

Automatically generated method for the interface

source

pub fn get_pdpte(&mut self, num: c_int) -> Result<uint64>

Automatically generated method for the interface

source

pub fn set_pdpte(&mut self, num: c_int, val: uint64) -> Result<()>

Automatically generated method for the interface

Trait Implementations§

source§

impl Interface for X86RegAccessInterface

source§

const NAME: &'static [u8] = crate::api::sys::X86_REG_ACCESS_INTERFACE

The name of the interface
source§

type InternalInterface = x86_reg_access_interface

The inner interface type, which is a struct of nullable extern “C” function pointers and must be default constructable as all NULL pointers (i.e. None values)
source§

type Name = &'static [u8]

The type of the name of the interface, must be convertible to raw C string to pass to the simulator
source§

fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self

Create a new instance of this interface
source§

fn register(cls: *mut ConfClass) -> Result<()>
where Self: Sized,

Register this interface for a type
source§

fn get(obj: *mut ConfObject) -> Result<Self>
where Self: Sized,

Get this interface for an object that implements it

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.