Struct simics::api::interface::interfaces::ProcessorInfoInterface
source · pub struct ProcessorInfoInterface {
obj: *mut ConfObject,
interface: *mut processor_info_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut processor_info_interface
Implementations§
source§impl ProcessorInfoInterface
impl ProcessorInfoInterface
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 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 ProcessorInfoInterface
impl Interface for ProcessorInfoInterface
source§const NAME: &'static [u8] = crate::api::sys::PROCESSOR_INFO_INTERFACE
const NAME: &'static [u8] = crate::api::sys::PROCESSOR_INFO_INTERFACE
The name of the interface
source§type InternalInterface = processor_info_interface
type InternalInterface = processor_info_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 ProcessorInfoInterface
impl RefUnwindSafe for ProcessorInfoInterface
impl !Send for ProcessorInfoInterface
impl !Sync for ProcessorInfoInterface
impl Unpin for ProcessorInfoInterface
impl UnwindSafe for ProcessorInfoInterface
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