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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_fast_string_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_fast_string(&mut self, value: bool)
pub const fn set_fast_string(&mut self, value: bool)
Bits: 0..1
Sourcepub const fn with_tcc_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_tcc_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn x87_compat(&self) -> bool
pub const fn x87_compat(&self) -> bool
Bits: 2..3
Sourcepub const fn with_x87_compat_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_x87_compat_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_x87_compat(&mut self, value: bool)
pub const fn set_x87_compat(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn with_tm1_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_tm1_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_split_lock_disable_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_split_lock_disable(&mut self, value: bool)
pub const fn set_split_lock_disable(&mut self, value: bool)
Bits: 4..5
Sourcepub const fn set_split_lock_disable_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_split_lock_disable_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_l3cache_disable_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_l3cache_disable(&mut self, value: bool)
pub const fn set_l3cache_disable(&mut self, value: bool)
Bits: 6..7
Sourcepub const fn set_l3cache_disable_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_l3cache_disable_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 6..7
Sourcepub const fn with_emon_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_emon_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn suppress_lock(&self) -> bool
pub const fn suppress_lock(&self) -> bool
Bits: 8..9
Sourcepub const fn with_suppress_lock_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_suppress_lock_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_suppress_lock(&mut self, value: bool)
pub const 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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_prefetch_disable_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_prefetch_disable(&mut self, value: bool)
pub const fn set_prefetch_disable(&mut self, value: bool)
Bits: 9..10
Sourcepub const fn set_prefetch_disable_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_prefetch_disable_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 9..10
Sourcepub const fn with_ferr_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ferr_checked(self, value: bool) -> Result<Self, ()>
Bits: 10..11
Bits: 11..12
Bits: 11..12
Bits: 11..12
Bits: 11..12
Bits: 11..12
Bits: 12..13
Bits: 12..13
Bits: 12..13
Bits: 12..13
Bits: 12..13
Sourcepub const fn with_tm2_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_tm2_checked(self, value: bool) -> Result<Self, ()>
Bits: 13..14
Sourcepub const fn enhanced_speedstep(&self) -> bool
pub const fn enhanced_speedstep(&self) -> bool
Bits: 16..17
Sourcepub const fn with_enhanced_speedstep_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_enhanced_speedstep_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_enhanced_speedstep(&mut self, value: bool)
pub const fn set_enhanced_speedstep(&mut self, value: bool)
Bits: 16..17
Sourcepub const fn set_enhanced_speedstep_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_enhanced_speedstep_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 16..17
Sourcepub const fn with_mwait_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_mwait_checked(self, value: bool) -> Result<Self, ()>
Bits: 18..19
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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_adj_prefetch_disable_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_adj_prefetch_disable(&mut self, value: bool)
pub const fn set_adj_prefetch_disable(&mut self, value: bool)
Bits: 19..20
Sourcepub const fn set_adj_prefetch_disable_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_adj_prefetch_disable_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_enable_speedstep_lock_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_enable_speedstep_lock(&mut self, value: bool)
pub const fn set_enable_speedstep_lock(&mut self, value: bool)
Bits: 20..21
Sourcepub const fn set_enable_speedstep_lock_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_enable_speedstep_lock_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_limit_cpuid_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_limit_cpuid(&mut self, value: bool)
pub const 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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_xtpr_disable_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_xtpr_disable(&mut self, value: bool)
pub const 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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_l1d_context_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_l1d_context(&mut self, value: bool)
pub const 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more