Struct x86defs::MiscEnable
source · pub struct MiscEnable(/* private fields */);
Expand description
Values for X86X_IA32_MSR_MISC_ENABLE
MSR.
Many of these fields are undocumented or underdocumented and do not always have the same meaning across different CPU models. However, this MSR must have appropriate values for Linux to successfully boot.
Implementations§
source§impl MiscEnable
impl MiscEnable
sourcepub const fn fast_string(&self) -> bool
pub const fn fast_string(&self) -> bool
Bits: 0..1
sourcepub const fn with_fast_string(self, value: bool) -> Self
pub const fn with_fast_string(self, value: bool) -> Self
Bits: 0..1
sourcepub fn set_fast_string(&mut self, value: bool)
pub fn set_fast_string(&mut self, value: bool)
Bits: 0..1
sourcepub const fn x87_compat(&self) -> bool
pub const fn x87_compat(&self) -> bool
Bits: 2..3
sourcepub const fn with_x87_compat(self, value: bool) -> Self
pub const fn with_x87_compat(self, value: bool) -> Self
Bits: 2..3
sourcepub fn set_x87_compat(&mut self, value: bool)
pub fn set_x87_compat(&mut self, value: bool)
Bits: 2..3
sourcepub const fn split_lock_disable(&self) -> bool
pub const fn split_lock_disable(&self) -> bool
Bits: 4..5
sourcepub const fn with_split_lock_disable(self, value: bool) -> Self
pub const fn with_split_lock_disable(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_split_lock_disable(&mut self, value: bool)
pub fn set_split_lock_disable(&mut self, value: bool)
Bits: 4..5
sourcepub const fn l3cache_disable(&self) -> bool
pub const fn l3cache_disable(&self) -> bool
Bits: 6..7
sourcepub const fn with_l3cache_disable(self, value: bool) -> Self
pub const fn with_l3cache_disable(self, value: bool) -> Self
Bits: 6..7
sourcepub fn set_l3cache_disable(&mut self, value: bool)
pub fn set_l3cache_disable(&mut self, value: bool)
Bits: 6..7
sourcepub const fn suppress_lock(&self) -> bool
pub const fn suppress_lock(&self) -> bool
Bits: 8..9
sourcepub const fn with_suppress_lock(self, value: bool) -> Self
pub const fn with_suppress_lock(self, value: bool) -> Self
Bits: 8..9
sourcepub fn set_suppress_lock(&mut self, value: bool)
pub fn set_suppress_lock(&mut self, value: bool)
Bits: 8..9
sourcepub const fn prefetch_disable(&self) -> bool
pub const fn prefetch_disable(&self) -> bool
Bits: 9..10
sourcepub const fn with_prefetch_disable(self, value: bool) -> Self
pub const fn with_prefetch_disable(self, value: bool) -> Self
Bits: 9..10
sourcepub fn set_prefetch_disable(&mut self, value: bool)
pub fn set_prefetch_disable(&mut self, value: bool)
Bits: 9..10
Bits: 11..12
Bits: 11..12
Bits: 11..12
Bits: 12..13
Bits: 12..13
Bits: 12..13
sourcepub const fn enhanced_speedstep(&self) -> bool
pub const fn enhanced_speedstep(&self) -> bool
Bits: 16..17
sourcepub const fn with_enhanced_speedstep(self, value: bool) -> Self
pub const fn with_enhanced_speedstep(self, value: bool) -> Self
Bits: 16..17
sourcepub fn set_enhanced_speedstep(&mut self, value: bool)
pub fn set_enhanced_speedstep(&mut self, value: bool)
Bits: 16..17
sourcepub const fn with_mwait(self, value: bool) -> Self
pub const fn with_mwait(self, value: bool) -> Self
Bits: 18..19
sourcepub const fn adj_prefetch_disable(&self) -> bool
pub const fn adj_prefetch_disable(&self) -> bool
Bits: 19..20
sourcepub const fn with_adj_prefetch_disable(self, value: bool) -> Self
pub const fn with_adj_prefetch_disable(self, value: bool) -> Self
Bits: 19..20
sourcepub fn set_adj_prefetch_disable(&mut self, value: bool)
pub fn set_adj_prefetch_disable(&mut self, value: bool)
Bits: 19..20
sourcepub const fn enable_speedstep_lock(&self) -> bool
pub const fn enable_speedstep_lock(&self) -> bool
Bits: 20..21
sourcepub const fn with_enable_speedstep_lock(self, value: bool) -> Self
pub const fn with_enable_speedstep_lock(self, value: bool) -> Self
Bits: 20..21
sourcepub fn set_enable_speedstep_lock(&mut self, value: bool)
pub fn set_enable_speedstep_lock(&mut self, value: bool)
Bits: 20..21
sourcepub const fn limit_cpuid(&self) -> bool
pub const fn limit_cpuid(&self) -> bool
Bits: 22..23
sourcepub const fn with_limit_cpuid(self, value: bool) -> Self
pub const fn with_limit_cpuid(self, value: bool) -> Self
Bits: 22..23
sourcepub fn set_limit_cpuid(&mut self, value: bool)
pub fn set_limit_cpuid(&mut self, value: bool)
Bits: 22..23
sourcepub const fn xtpr_disable(&self) -> bool
pub const fn xtpr_disable(&self) -> bool
Bits: 23..24
sourcepub const fn with_xtpr_disable(self, value: bool) -> Self
pub const fn with_xtpr_disable(self, value: bool) -> Self
Bits: 23..24
sourcepub fn set_xtpr_disable(&mut self, value: bool)
pub fn set_xtpr_disable(&mut self, value: bool)
Bits: 23..24
sourcepub const fn l1d_context(&self) -> bool
pub const fn l1d_context(&self) -> bool
Bits: 24..25
sourcepub const fn with_l1d_context(self, value: bool) -> Self
pub const fn with_l1d_context(self, value: bool) -> Self
Bits: 24..25
sourcepub fn set_l1d_context(&mut self, value: bool)
pub fn set_l1d_context(&mut self, value: bool)
Bits: 24..25
Trait Implementations§
source§impl Clone for MiscEnable
impl Clone for MiscEnable
source§fn clone(&self) -> MiscEnable
fn clone(&self) -> MiscEnable
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 MiscEnable
impl Debug for MiscEnable
source§impl Default for MiscEnable
impl Default for MiscEnable
source§impl From<MiscEnable> for u64
impl From<MiscEnable> for u64
source§fn from(v: MiscEnable) -> u64
fn from(v: MiscEnable) -> u64
Converts to this type from the input type.
source§impl From<u64> for MiscEnable
impl From<u64> for MiscEnable
impl Copy for MiscEnable
Auto Trait Implementations§
impl Freeze for MiscEnable
impl RefUnwindSafe for MiscEnable
impl Send for MiscEnable
impl Sync for MiscEnable
impl Unpin for MiscEnable
impl UnwindSafe for MiscEnable
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
)