Struct simics::api::interface::interfaces::X86TlbInterface
source · pub struct X86TlbInterface {
obj: *mut ConfObject,
interface: *mut x86_tlb_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut x86_tlb_interface
Implementations§
source§impl X86TlbInterface
impl X86TlbInterface
sourcepub fn flush_all(&mut self, keep_global_entries: c_int) -> Result<()>
pub fn flush_all(&mut self, keep_global_entries: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn flush_page(&mut self, laddr: linear_address_t) -> Result<()>
pub fn flush_page(&mut self, laddr: linear_address_t) -> Result<()>
Automatically generated method for the interface
sourcepub fn lookup(&mut self, mem_tr: *mut x86_memory_transaction_t) -> Result<c_int>
pub fn lookup(&mut self, mem_tr: *mut x86_memory_transaction_t) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn add(
&mut self,
mode: processor_mode_t,
read_or_write: read_or_write_t,
data_or_instr: data_or_instr_t,
global_page: c_int,
pat_type: x86_memory_type_t,
mtrr_type: x86_memory_type_t,
laddr: linear_address_t,
paddr: physical_address_t,
page_size: c_int,
) -> Result<()>
pub fn add( &mut self, mode: processor_mode_t, read_or_write: read_or_write_t, data_or_instr: data_or_instr_t, global_page: c_int, pat_type: x86_memory_type_t, mtrr_type: x86_memory_type_t, laddr: linear_address_t, paddr: physical_address_t, page_size: c_int, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn itlb_lookup(
&mut self,
laddr: linear_address_t,
mode: processor_mode_t,
) -> Result<tagged_physical_address_t>
pub fn itlb_lookup( &mut self, laddr: linear_address_t, mode: processor_mode_t, ) -> Result<tagged_physical_address_t>
Automatically generated method for the interface
sourcepub fn set_pae_mode(&mut self, pae_mode: bool) -> Result<()>
pub fn set_pae_mode(&mut self, pae_mode: bool) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for X86TlbInterface
impl Interface for X86TlbInterface
source§type InternalInterface = x86_tlb_interface
type InternalInterface = x86_tlb_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 X86TlbInterface
impl RefUnwindSafe for X86TlbInterface
impl !Send for X86TlbInterface
impl !Sync for X86TlbInterface
impl Unpin for X86TlbInterface
impl UnwindSafe for X86TlbInterface
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