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

source

pub const fn new() -> Self

Creates a new default initialized bitfield.

source

pub const fn from_bits(bits: u64) -> Self

Convert from bits.

source

pub const fn into_bits(self) -> u64

Convert into bits.

source

pub const fn fast_string(&self) -> bool

Bits: 0..1

source

pub const fn with_fast_string(self, value: bool) -> Self

Bits: 0..1

source

pub fn set_fast_string(&mut self, value: bool)

Bits: 0..1

source

pub const fn tcc(&self) -> bool

Bits: 1..2

source

pub const fn with_tcc(self, value: bool) -> Self

Bits: 1..2

source

pub fn set_tcc(&mut self, value: bool)

Bits: 1..2

source

pub const fn x87_compat(&self) -> bool

Bits: 2..3

source

pub const fn with_x87_compat(self, value: bool) -> Self

Bits: 2..3

source

pub fn set_x87_compat(&mut self, value: bool)

Bits: 2..3

source

pub const fn tm1(&self) -> bool

Bits: 3..4

source

pub const fn with_tm1(self, value: bool) -> Self

Bits: 3..4

source

pub fn set_tm1(&mut self, value: bool)

Bits: 3..4

source

pub const fn split_lock_disable(&self) -> bool

Bits: 4..5

source

pub const fn with_split_lock_disable(self, value: bool) -> Self

Bits: 4..5

source

pub fn set_split_lock_disable(&mut self, value: bool)

Bits: 4..5

source

pub const fn l3cache_disable(&self) -> bool

Bits: 6..7

source

pub const fn with_l3cache_disable(self, value: bool) -> Self

Bits: 6..7

source

pub fn set_l3cache_disable(&mut self, value: bool)

Bits: 6..7

source

pub const fn emon(&self) -> bool

Bits: 7..8

source

pub const fn with_emon(self, value: bool) -> Self

Bits: 7..8

source

pub fn set_emon(&mut self, value: bool)

Bits: 7..8

source

pub const fn suppress_lock(&self) -> bool

Bits: 8..9

source

pub const fn with_suppress_lock(self, value: bool) -> Self

Bits: 8..9

source

pub fn set_suppress_lock(&mut self, value: bool)

Bits: 8..9

source

pub const fn prefetch_disable(&self) -> bool

Bits: 9..10

source

pub const fn with_prefetch_disable(self, value: bool) -> Self

Bits: 9..10

source

pub fn set_prefetch_disable(&mut self, value: bool)

Bits: 9..10

source

pub const fn ferr(&self) -> bool

Bits: 10..11

source

pub const fn with_ferr(self, value: bool) -> Self

Bits: 10..11

source

pub fn set_ferr(&mut self, value: bool)

Bits: 10..11

source

pub const fn bts_unavailable(&self) -> bool

Bits: 11..12

source

pub const fn with_bts_unavailable(self, value: bool) -> Self

Bits: 11..12

source

pub fn set_bts_unavailable(&mut self, value: bool)

Bits: 11..12

source

pub const fn pebs_unavailable(&self) -> bool

Bits: 12..13

source

pub const fn with_pebs_unavailable(self, value: bool) -> Self

Bits: 12..13

source

pub fn set_pebs_unavailable(&mut self, value: bool)

Bits: 12..13

source

pub const fn tm2(&self) -> bool

Bits: 13..14

source

pub const fn with_tm2(self, value: bool) -> Self

Bits: 13..14

source

pub fn set_tm2(&mut self, value: bool)

Bits: 13..14

source

pub const fn enhanced_speedstep(&self) -> bool

Bits: 16..17

source

pub const fn with_enhanced_speedstep(self, value: bool) -> Self

Bits: 16..17

source

pub fn set_enhanced_speedstep(&mut self, value: bool)

Bits: 16..17

source

pub const fn mwait(&self) -> bool

Bits: 18..19

source

pub const fn with_mwait(self, value: bool) -> Self

Bits: 18..19

source

pub fn set_mwait(&mut self, value: bool)

Bits: 18..19

source

pub const fn adj_prefetch_disable(&self) -> bool

Bits: 19..20

source

pub const fn with_adj_prefetch_disable(self, value: bool) -> Self

Bits: 19..20

source

pub fn set_adj_prefetch_disable(&mut self, value: bool)

Bits: 19..20

source

pub const fn enable_speedstep_lock(&self) -> bool

Bits: 20..21

source

pub const fn with_enable_speedstep_lock(self, value: bool) -> Self

Bits: 20..21

source

pub fn set_enable_speedstep_lock(&mut self, value: bool)

Bits: 20..21

source

pub const fn limit_cpuid(&self) -> bool

Bits: 22..23

source

pub const fn with_limit_cpuid(self, value: bool) -> Self

Bits: 22..23

source

pub fn set_limit_cpuid(&mut self, value: bool)

Bits: 22..23

source

pub const fn xtpr_disable(&self) -> bool

Bits: 23..24

source

pub const fn with_xtpr_disable(self, value: bool) -> Self

Bits: 23..24

source

pub fn set_xtpr_disable(&mut self, value: bool)

Bits: 23..24

source

pub const fn l1d_context(&self) -> bool

Bits: 24..25

source

pub const fn with_l1d_context(self, value: bool) -> Self

Bits: 24..25

source

pub fn set_l1d_context(&mut self, value: bool)

Bits: 24..25

Trait Implementations§

source§

impl Clone for MiscEnable

source§

fn clone(&self) -> MiscEnable

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MiscEnable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for MiscEnable

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<MiscEnable> for u64

source§

fn from(v: MiscEnable) -> u64

Converts to this type from the input type.
source§

impl From<u64> for MiscEnable

source§

fn from(v: u64) -> Self

Converts to this type from the input type.
source§

impl Copy for MiscEnable

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.