Skip to main content

ProcessorFeatureRegister0

Struct ProcessorFeatureRegister0 

Source
pub struct ProcessorFeatureRegister0(/* private fields */);
Expand description

The layout of ID_AA64PFR0_EL1.

Implementations§

Source§

impl ProcessorFeatureRegister0

Source

pub const RSVD1_MASK: u64

Mask of all reserved-as-1 bits.

Source

pub const RSVD0_MASK: u64

Mask of all reserved-as-0 bits.

Source

pub const DEFAULT: u64

The default value of the layout, combining all field defaults and reserved-as values.

Source

pub const CSV3_MASK: u64

Unshifted bitmask of csv3.

Source

pub const CSV3_SHIFT: usize = 60

Bit shift (i.e., the low bit) of csv3.

Source

pub const CSV2_MASK: u64

Unshifted bitmask of csv2.

Source

pub const CSV2_SHIFT: usize = 56

Bit shift (i.e., the low bit) of csv2.

Source

pub const DIT_MASK: u64

Unshifted bitmask of dit.

Source

pub const DIT_SHIFT: usize = 48

Bit shift (i.e., the low bit) of dit.

Source

pub const AMU_MASK: u64

Unshifted bitmask of amu.

Source

pub const AMU_SHIFT: usize = 44

Bit shift (i.e., the low bit) of amu.

Source

pub const MPAM_MASK: u64

Unshifted bitmask of mpam.

Source

pub const MPAM_SHIFT: usize = 40

Bit shift (i.e., the low bit) of mpam.

Source

pub const SEL2_MASK: u64

Unshifted bitmask of sel2.

Source

pub const SEL2_SHIFT: usize = 36

Bit shift (i.e., the low bit) of sel2.

Source

pub const SVE_MASK: u64

Unshifted bitmask of sve.

Source

pub const SVE_SHIFT: usize = 32

Bit shift (i.e., the low bit) of sve.

Source

pub const RAS_MASK: u64

Unshifted bitmask of ras.

Source

pub const RAS_SHIFT: usize = 28

Bit shift (i.e., the low bit) of ras.

Source

pub const GIC_MASK: u64

Unshifted bitmask of gic.

Source

pub const GIC_SHIFT: usize = 24

Bit shift (i.e., the low bit) of gic.

Source

pub const ADVSIMD_MASK: u64

Unshifted bitmask of advsimd.

Source

pub const ADVSIMD_SHIFT: usize = 20

Bit shift (i.e., the low bit) of advsimd.

Source

pub const FP_MASK: u64

Unshifted bitmask of fp.

Source

pub const FP_SHIFT: usize = 16

Bit shift (i.e., the low bit) of fp.

Source

pub const EL3_MASK: u64

Unshifted bitmask of el3.

Source

pub const EL3_SHIFT: usize = 12

Bit shift (i.e., the low bit) of el3.

Source

pub const EL2_MASK: u64

Unshifted bitmask of el2.

Source

pub const EL2_SHIFT: usize = 8

Bit shift (i.e., the low bit) of el2.

Source

pub const EL1_MASK: u64

Unshifted bitmask of el1.

Source

pub const EL1_SHIFT: usize = 4

Bit shift (i.e., the low bit) of el1.

Source

pub const EL0_MASK: u64

Unshifted bitmask of el0.

Source

pub const EL0_SHIFT: usize = 0

Bit shift (i.e., the low bit) of el0.

Source

pub const FIELDS: [FieldMetadata<u64>; 15]

Metadata of all named fields in the layout.

Source

pub const fn new() -> Self

Creates a new instance with reserved-as-1 bits set and all other bits zeroed (i.e., with a value of Self::RSVD1_MASK).

Source

pub const fn bits(self) -> u64

Source

pub fn csv3(&self) -> IdAa64Pfr0Csv3

The value of ProcessorFeatureRegister0[63:60].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_csv3 to recover from invalid bit patterns.

Source

pub fn try_csv3(&self) -> Result<IdAa64Pfr0Csv3, InvalidBits<u8>>

Fallible variant of Self::csv3.

Source

pub fn set_csv3(&mut self, value: IdAa64Pfr0Csv3) -> &mut Self

Sets the value of ProcessorFeatureRegister0[63:60].

Source

pub fn csv2(&self) -> IdAa64Pfr0Csv2

The value of ProcessorFeatureRegister0[59:56].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_csv2 to recover from invalid bit patterns.

Source

pub fn try_csv2(&self) -> Result<IdAa64Pfr0Csv2, InvalidBits<u8>>

Fallible variant of Self::csv2.

Source

pub fn set_csv2(&mut self, value: IdAa64Pfr0Csv2) -> &mut Self

Sets the value of ProcessorFeatureRegister0[59:56].

Source

pub fn dit(&self) -> IdAa64Pfr0Dit

The value of ProcessorFeatureRegister0[51:48].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_dit to recover from invalid bit patterns.

Source

pub fn try_dit(&self) -> Result<IdAa64Pfr0Dit, InvalidBits<u8>>

Fallible variant of Self::dit.

Source

pub fn set_dit(&mut self, value: IdAa64Pfr0Dit) -> &mut Self

Sets the value of ProcessorFeatureRegister0[51:48].

Source

pub fn amu(&self) -> IdAa64Pfr0Amu

The value of ProcessorFeatureRegister0[47:44].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_amu to recover from invalid bit patterns.

Source

pub fn try_amu(&self) -> Result<IdAa64Pfr0Amu, InvalidBits<u8>>

Fallible variant of Self::amu.

Source

pub fn set_amu(&mut self, value: IdAa64Pfr0Amu) -> &mut Self

Sets the value of ProcessorFeatureRegister0[47:44].

Source

pub fn mpam(&self) -> IdAa64Pfr0Mpam

The value of ProcessorFeatureRegister0[43:40].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_mpam to recover from invalid bit patterns.

Source

pub fn try_mpam(&self) -> Result<IdAa64Pfr0Mpam, InvalidBits<u8>>

Fallible variant of Self::mpam.

Source

pub fn set_mpam(&mut self, value: IdAa64Pfr0Mpam) -> &mut Self

Sets the value of ProcessorFeatureRegister0[43:40].

Source

pub fn sel2(&self) -> IdAa64Pfr0Sel2

The value of ProcessorFeatureRegister0[39:36].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_sel2 to recover from invalid bit patterns.

Source

pub fn try_sel2(&self) -> Result<IdAa64Pfr0Sel2, InvalidBits<u8>>

Fallible variant of Self::sel2.

Source

pub fn set_sel2(&mut self, value: IdAa64Pfr0Sel2) -> &mut Self

Sets the value of ProcessorFeatureRegister0[39:36].

Source

pub fn sve(&self) -> IdAa64Pfr0Sve

The value of ProcessorFeatureRegister0[35:32].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_sve to recover from invalid bit patterns.

Source

pub fn try_sve(&self) -> Result<IdAa64Pfr0Sve, InvalidBits<u8>>

Fallible variant of Self::sve.

Source

pub fn set_sve(&mut self, value: IdAa64Pfr0Sve) -> &mut Self

Sets the value of ProcessorFeatureRegister0[35:32].

Source

pub fn ras(&self) -> IdAa64Pfr0Ras

The value of ProcessorFeatureRegister0[31:28].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_ras to recover from invalid bit patterns.

Source

pub fn try_ras(&self) -> Result<IdAa64Pfr0Ras, InvalidBits<u8>>

Fallible variant of Self::ras.

Source

pub fn set_ras(&mut self, value: IdAa64Pfr0Ras) -> &mut Self

Sets the value of ProcessorFeatureRegister0[31:28].

Source

pub fn gic(&self) -> IdAa64Pfr0Gic

The value of ProcessorFeatureRegister0[27:24].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_gic to recover from invalid bit patterns.

Source

pub fn try_gic(&self) -> Result<IdAa64Pfr0Gic, InvalidBits<u8>>

Fallible variant of Self::gic.

Source

pub fn set_gic(&mut self, value: IdAa64Pfr0Gic) -> &mut Self

Sets the value of ProcessorFeatureRegister0[27:24].

Source

pub fn advsimd(&self) -> IdAa64Pfr0Fp

The value of ProcessorFeatureRegister0[23:20].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_advsimd to recover from invalid bit patterns.

Source

pub fn try_advsimd(&self) -> Result<IdAa64Pfr0Fp, InvalidBits<u8>>

Fallible variant of Self::advsimd.

Source

pub fn set_advsimd(&mut self, value: IdAa64Pfr0Fp) -> &mut Self

Sets the value of ProcessorFeatureRegister0[23:20].

Source

pub fn fp(&self) -> IdAa64Pfr0Fp

The value of ProcessorFeatureRegister0[19:16].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_fp to recover from invalid bit patterns.

Source

pub fn try_fp(&self) -> Result<IdAa64Pfr0Fp, InvalidBits<u8>>

Fallible variant of Self::fp.

Source

pub fn set_fp(&mut self, value: IdAa64Pfr0Fp) -> &mut Self

Sets the value of ProcessorFeatureRegister0[19:16].

Source

pub fn el3(&self) -> IdAa64Pfr0El

The value of ProcessorFeatureRegister0[15:12].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_el3 to recover from invalid bit patterns.

Source

pub fn try_el3(&self) -> Result<IdAa64Pfr0El, InvalidBits<u8>>

Fallible variant of Self::el3.

Source

pub fn set_el3(&mut self, value: IdAa64Pfr0El) -> &mut Self

Sets the value of ProcessorFeatureRegister0[15:12].

Source

pub fn el2(&self) -> IdAa64Pfr0El

The value of ProcessorFeatureRegister0[11:8].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_el2 to recover from invalid bit patterns.

Source

pub fn try_el2(&self) -> Result<IdAa64Pfr0El, InvalidBits<u8>>

Fallible variant of Self::el2.

Source

pub fn set_el2(&mut self, value: IdAa64Pfr0El) -> &mut Self

Sets the value of ProcessorFeatureRegister0[11:8].

Source

pub fn el1(&self) -> IdAa64Pfr0El

The value of ProcessorFeatureRegister0[7:4].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_el1 to recover from invalid bit patterns.

Source

pub fn try_el1(&self) -> Result<IdAa64Pfr0El, InvalidBits<u8>>

Fallible variant of Self::el1.

Source

pub fn set_el1(&mut self, value: IdAa64Pfr0El) -> &mut Self

Sets the value of ProcessorFeatureRegister0[7:4].

Source

pub fn el0(&self) -> IdAa64Pfr0El

The value of ProcessorFeatureRegister0[3:0].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_el0 to recover from invalid bit patterns.

Source

pub fn try_el0(&self) -> Result<IdAa64Pfr0El, InvalidBits<u8>>

Fallible variant of Self::el0.

Source

pub fn set_el0(&mut self, value: IdAa64Pfr0El) -> &mut Self

Sets the value of ProcessorFeatureRegister0[3:0].

Source§

impl ProcessorFeatureRegister0

Source

pub fn iter(&self) -> ProcessorFeatureRegister0Iter

Returns an iterator over (metadata, value) pairs for each field.

Trait Implementations§

Source§

impl Binary for ProcessorFeatureRegister0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result
where IdAa64Pfr0Csv3: Debug, IdAa64Pfr0Csv2: Debug, IdAa64Pfr0Dit: Debug, IdAa64Pfr0Amu: Debug, IdAa64Pfr0Mpam: Debug, IdAa64Pfr0Sel2: Debug, IdAa64Pfr0Sve: Debug, IdAa64Pfr0Ras: Debug, IdAa64Pfr0Gic: Debug, IdAa64Pfr0Fp: Debug, IdAa64Pfr0El: Debug,

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

impl Clone for ProcessorFeatureRegister0

Source§

fn clone(&self) -> ProcessorFeatureRegister0

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for ProcessorFeatureRegister0

Source§

impl Debug for ProcessorFeatureRegister0

Source§

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

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

impl Default for ProcessorFeatureRegister0

Source§

fn default() -> Self

Returns an instance with the default bits set (i.e,. with a value of Self::DEFAULT.

Source§

impl Eq for ProcessorFeatureRegister0

Source§

impl From<ProcessorFeatureRegister0> for u64

Source§

fn from(value: ProcessorFeatureRegister0) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for ProcessorFeatureRegister0

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for ProcessorFeatureRegister0

Source§

type Item = (&'static FieldMetadata<u64>, u64)

The type of the elements being iterated over.
Source§

type IntoIter = ProcessorFeatureRegister0Iter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a> IntoIterator for &'a ProcessorFeatureRegister0

Source§

type Item = (&'static FieldMetadata<u64>, u64)

The type of the elements being iterated over.
Source§

type IntoIter = ProcessorFeatureRegister0Iter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl LowerHex for ProcessorFeatureRegister0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result
where IdAa64Pfr0Csv3: Debug, IdAa64Pfr0Csv2: Debug, IdAa64Pfr0Dit: Debug, IdAa64Pfr0Amu: Debug, IdAa64Pfr0Mpam: Debug, IdAa64Pfr0Sel2: Debug, IdAa64Pfr0Sve: Debug, IdAa64Pfr0Ras: Debug, IdAa64Pfr0Gic: Debug, IdAa64Pfr0Fp: Debug, IdAa64Pfr0El: Debug,

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

impl Octal for ProcessorFeatureRegister0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result
where IdAa64Pfr0Csv3: Debug, IdAa64Pfr0Csv2: Debug, IdAa64Pfr0Dit: Debug, IdAa64Pfr0Amu: Debug, IdAa64Pfr0Mpam: Debug, IdAa64Pfr0Sel2: Debug, IdAa64Pfr0Sve: Debug, IdAa64Pfr0Ras: Debug, IdAa64Pfr0Gic: Debug, IdAa64Pfr0Fp: Debug, IdAa64Pfr0El: Debug,

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

impl PartialEq for ProcessorFeatureRegister0

Source§

fn eq(&self, other: &ProcessorFeatureRegister0) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable)§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ProcessorFeatureRegister0

Source§

impl UpperHex for ProcessorFeatureRegister0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result
where IdAa64Pfr0Csv3: Debug, IdAa64Pfr0Csv2: Debug, IdAa64Pfr0Dit: Debug, IdAa64Pfr0Amu: Debug, IdAa64Pfr0Mpam: Debug, IdAa64Pfr0Sel2: Debug, IdAa64Pfr0Sve: Debug, IdAa64Pfr0Ras: Debug, IdAa64Pfr0Gic: Debug, IdAa64Pfr0Fp: Debug, IdAa64Pfr0El: Debug,

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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<Layout, Base> LayoutOver<Base> for Layout
where Layout: Copy + From<Base> + Into<Base>,

§

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

§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.