Struct simics_api_sys::bindings::x86_seg_reg_t
source · #[repr(C)]pub struct x86_seg_reg_t {
pub valid: bool,
pub sel: uint16,
pub base: uint64,
pub attr: uint32,
pub limit: uint32,
}
Expand description
x86_seg_reg_t describes a segment register and its hidden fields. If valid is false, the segment is unusable and attempts to use it will trigger a fault in non-64-bit mode. The meaning of each bit in attr is as follows: type bit 0..3 S bit 4 DPL bit 5..6 P bit 7 L bit 13 D/B bit 14 G bit 15
Fields§
§valid: bool
§sel: uint16
§base: uint64
§attr: uint32
§limit: uint32
Trait Implementations§
source§impl Clone for x86_seg_reg_t
impl Clone for x86_seg_reg_t
source§fn clone(&self) -> x86_seg_reg_t
fn clone(&self) -> x86_seg_reg_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for x86_seg_reg_t
impl Debug for x86_seg_reg_t
source§impl Default for x86_seg_reg_t
impl Default for x86_seg_reg_t
source§fn default() -> x86_seg_reg_t
fn default() -> x86_seg_reg_t
Returns the “default value” for a type. Read more
source§impl Hash for x86_seg_reg_t
impl Hash for x86_seg_reg_t
source§impl Ord for x86_seg_reg_t
impl Ord for x86_seg_reg_t
source§fn cmp(&self, other: &x86_seg_reg_t) -> Ordering
fn cmp(&self, other: &x86_seg_reg_t) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for x86_seg_reg_t
impl PartialEq for x86_seg_reg_t
source§impl PartialOrd for x86_seg_reg_t
impl PartialOrd for x86_seg_reg_t
impl Copy for x86_seg_reg_t
impl Eq for x86_seg_reg_t
impl StructuralPartialEq for x86_seg_reg_t
Auto Trait Implementations§
impl Freeze for x86_seg_reg_t
impl RefUnwindSafe for x86_seg_reg_t
impl Send for x86_seg_reg_t
impl Sync for x86_seg_reg_t
impl Unpin for x86_seg_reg_t
impl UnwindSafe for x86_seg_reg_t
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)