Struct simics::api::interface::interfaces::ProcessorInfoV2Interface
source · pub struct ProcessorInfoV2Interface {
obj: *mut ConfObject,
interface: *mut processor_info_v2_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut processor_info_v2_interface
Implementations§
source§impl ProcessorInfoV2Interface
impl ProcessorInfoV2Interface
sourcepub fn disassemble(
&mut self,
address: generic_address_t,
instruction_data: attr_value_t,
sub_operation: c_int,
) -> Result<tuple_int_string_t>
pub fn disassemble( &mut self, address: generic_address_t, instruction_data: attr_value_t, sub_operation: c_int, ) -> Result<tuple_int_string_t>
Automatically generated method for the interface
sourcepub fn set_program_counter(&mut self, pc: logical_address_t) -> Result<()>
pub fn set_program_counter(&mut self, pc: logical_address_t) -> Result<()>
Automatically generated method for the interface
sourcepub fn get_program_counter(&mut self) -> Result<logical_address_t>
pub fn get_program_counter(&mut self) -> Result<logical_address_t>
Automatically generated method for the interface
sourcepub fn logical_to_physical(
&mut self,
address: logical_address_t,
access_type: access_t,
) -> Result<physical_block_t>
pub fn logical_to_physical( &mut self, address: logical_address_t, access_type: access_t, ) -> Result<physical_block_t>
Automatically generated method for the interface
sourcepub fn get_processor_mode(&mut self) -> Result<processor_mode_t>
pub fn get_processor_mode(&mut self) -> Result<processor_mode_t>
Automatically generated method for the interface
sourcepub fn enable_processor(&mut self) -> Result<c_int>
pub fn enable_processor(&mut self) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn disable_processor(&mut self) -> Result<c_int>
pub fn disable_processor(&mut self) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn get_enabled(&mut self) -> Result<c_int>
pub fn get_enabled(&mut self) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn get_endian(&mut self) -> Result<cpu_endian_t>
pub fn get_endian(&mut self) -> Result<cpu_endian_t>
Automatically generated method for the interface
sourcepub fn get_physical_memory(&mut self) -> Result<*mut conf_object_t>
pub fn get_physical_memory(&mut self) -> Result<*mut conf_object_t>
Automatically generated method for the interface
sourcepub fn get_logical_address_width(&mut self) -> Result<c_int>
pub fn get_logical_address_width(&mut self) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn get_physical_address_width(&mut self) -> Result<c_int>
pub fn get_physical_address_width(&mut self) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn architecture(&mut self) -> Result<*const c_char>
pub fn architecture(&mut self) -> Result<*const c_char>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for ProcessorInfoV2Interface
impl Interface for ProcessorInfoV2Interface
source§const NAME: &'static [u8] = crate::api::sys::PROCESSOR_INFO_V2_INTERFACE
const NAME: &'static [u8] = crate::api::sys::PROCESSOR_INFO_V2_INTERFACE
The name of the interface
source§type InternalInterface = processor_info_v2_interface
type InternalInterface = processor_info_v2_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]
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
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for ProcessorInfoV2Interface
impl RefUnwindSafe for ProcessorInfoV2Interface
impl !Send for ProcessorInfoV2Interface
impl !Sync for ProcessorInfoV2Interface
impl Unpin for ProcessorInfoV2Interface
impl UnwindSafe for ProcessorInfoV2Interface
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