Skip to main content

ProcessorFeatureRegister1

Struct ProcessorFeatureRegister1 

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

The layout of ID_AA64PFR1_EL1.

Implementations§

Source§

impl ProcessorFeatureRegister1

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 PFAR_MASK: u64

Unshifted bitmask of pfar.

Source

pub const PFAR_SHIFT: usize = 60

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

Source

pub const DF2_MASK: u64

Unshifted bitmask of df2.

Source

pub const DF2_SHIFT: usize = 56

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

Source

pub const MTEX_MASK: u64

Unshifted bitmask of mtex.

Source

pub const MTEX_SHIFT: usize = 52

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

Source

pub const THE_MASK: u64

Unshifted bitmask of the.

Source

pub const THE_SHIFT: usize = 48

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

Source

pub const GCS_MASK: u64

Unshifted bitmask of gcs.

Source

pub const GCS_SHIFT: usize = 44

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

Source

pub const MTE_FRAC_MASK: u64

Unshifted bitmask of mte_frac.

Source

pub const MTE_FRAC_SHIFT: usize = 40

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

Source

pub const NMI_MASK: u64

Unshifted bitmask of nmi.

Source

pub const NMI_SHIFT: usize = 36

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

Source

pub const CSV2_FRAC_MASK: u64

Unshifted bitmask of csv2_frac.

Source

pub const CSV2_FRAC_SHIFT: usize = 32

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

Source

pub const RNDR_TRAP_MASK: u64

Unshifted bitmask of rndr_trap.

Source

pub const RNDR_TRAP_SHIFT: usize = 28

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

Source

pub const SME_MASK: u64

Unshifted bitmask of sme.

Source

pub const SME_SHIFT: usize = 24

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

Source

pub const MPAM_FRAC_MASK: u64

Unshifted bitmask of mpam_frac.

Source

pub const MPAM_FRAC_SHIFT: usize = 16

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

Source

pub const RAS_FRAC_MASK: u64

Unshifted bitmask of ras_frac.

Source

pub const RAS_FRAC_SHIFT: usize = 12

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

Source

pub const MTE_MASK: u64

Unshifted bitmask of mte.

Source

pub const MTE_SHIFT: usize = 8

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

Source

pub const SSBS_MASK: u64

Unshifted bitmask of ssbs.

Source

pub const SSBS_SHIFT: usize = 4

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

Source

pub const BT_MASK: u64

Unshifted bitmask of bt.

Source

pub const BT_SHIFT: usize = 0

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

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 pfar(&self) -> IdAa64Pfr1El1Pfar

The value of ProcessorFeatureRegister1[63:60].

§Panics

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

Source

pub fn try_pfar(&self) -> Result<IdAa64Pfr1El1Pfar, InvalidBits<u8>>

Fallible variant of Self::pfar.

Source

pub fn set_pfar(&mut self, value: IdAa64Pfr1El1Pfar) -> &mut Self

Sets the value of ProcessorFeatureRegister1[63:60].

Source

pub fn df2(&self) -> IdAa64Pfr1El1Df2

The value of ProcessorFeatureRegister1[59:56].

§Panics

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

Source

pub fn try_df2(&self) -> Result<IdAa64Pfr1El1Df2, InvalidBits<u8>>

Fallible variant of Self::df2.

Source

pub fn set_df2(&mut self, value: IdAa64Pfr1El1Df2) -> &mut Self

Sets the value of ProcessorFeatureRegister1[59:56].

Source

pub fn mtex(&self) -> IdAa64Pfr1El1Mtex

The value of ProcessorFeatureRegister1[55:52].

§Panics

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

Source

pub fn try_mtex(&self) -> Result<IdAa64Pfr1El1Mtex, InvalidBits<u8>>

Fallible variant of Self::mtex.

Source

pub fn set_mtex(&mut self, value: IdAa64Pfr1El1Mtex) -> &mut Self

Sets the value of ProcessorFeatureRegister1[55:52].

Source

pub fn the(&self) -> IdAa64Pfr1El1The

The value of ProcessorFeatureRegister1[51:48].

§Panics

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

Source

pub fn try_the(&self) -> Result<IdAa64Pfr1El1The, InvalidBits<u8>>

Fallible variant of Self::the.

Source

pub fn set_the(&mut self, value: IdAa64Pfr1El1The) -> &mut Self

Sets the value of ProcessorFeatureRegister1[51:48].

Source

pub fn gcs(&self) -> IdAa64Pfr1El1Gcs

The value of ProcessorFeatureRegister1[47:44].

§Panics

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

Source

pub fn try_gcs(&self) -> Result<IdAa64Pfr1El1Gcs, InvalidBits<u8>>

Fallible variant of Self::gcs.

Source

pub fn set_gcs(&mut self, value: IdAa64Pfr1El1Gcs) -> &mut Self

Sets the value of ProcessorFeatureRegister1[47:44].

Source

pub fn mte_frac(&self) -> IdAa64Pfr1El1MteFrac

The value of ProcessorFeatureRegister1[43:40].

§Panics

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

Source

pub fn try_mte_frac(&self) -> Result<IdAa64Pfr1El1MteFrac, InvalidBits<u8>>

Fallible variant of Self::mte_frac.

Source

pub fn set_mte_frac(&mut self, value: IdAa64Pfr1El1MteFrac) -> &mut Self

Sets the value of ProcessorFeatureRegister1[43:40].

Source

pub fn nmi(&self) -> IdAa64Pfr1El1Nmi

The value of ProcessorFeatureRegister1[39:36].

§Panics

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

Source

pub fn try_nmi(&self) -> Result<IdAa64Pfr1El1Nmi, InvalidBits<u8>>

Fallible variant of Self::nmi.

Source

pub fn set_nmi(&mut self, value: IdAa64Pfr1El1Nmi) -> &mut Self

Sets the value of ProcessorFeatureRegister1[39:36].

Source

pub fn csv2_frac(&self) -> IdAa64Pfr1El1Csv2Frac

The value of ProcessorFeatureRegister1[35:32].

§Panics

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

Source

pub fn try_csv2_frac(&self) -> Result<IdAa64Pfr1El1Csv2Frac, InvalidBits<u8>>

Fallible variant of Self::csv2_frac.

Source

pub fn set_csv2_frac(&mut self, value: IdAa64Pfr1El1Csv2Frac) -> &mut Self

Sets the value of ProcessorFeatureRegister1[35:32].

Source

pub fn rndr_trap(&self) -> IdAa64Pfr1El1RndrTrap

The value of ProcessorFeatureRegister1[31:28].

§Panics

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

Source

pub fn try_rndr_trap(&self) -> Result<IdAa64Pfr1El1RndrTrap, InvalidBits<u8>>

Fallible variant of Self::rndr_trap.

Source

pub fn set_rndr_trap(&mut self, value: IdAa64Pfr1El1RndrTrap) -> &mut Self

Sets the value of ProcessorFeatureRegister1[31:28].

Source

pub fn sme(&self) -> IdAa64Pfr1El1Sme

The value of ProcessorFeatureRegister1[27:24].

§Panics

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

Source

pub fn try_sme(&self) -> Result<IdAa64Pfr1El1Sme, InvalidBits<u8>>

Fallible variant of Self::sme.

Source

pub fn set_sme(&mut self, value: IdAa64Pfr1El1Sme) -> &mut Self

Sets the value of ProcessorFeatureRegister1[27:24].

Source

pub const fn mpam_frac(&self) -> u8

The value of ProcessorFeatureRegister1[19:16].

Source

pub const fn set_mpam_frac(&mut self, value: u8) -> &mut Self

Sets the value of ProcessorFeatureRegister1[19:16].

Source

pub const fn ras_frac(&self) -> u8

The value of ProcessorFeatureRegister1[15:12].

Source

pub const fn set_ras_frac(&mut self, value: u8) -> &mut Self

Sets the value of ProcessorFeatureRegister1[15:12].

Source

pub fn mte(&self) -> IdAa64Pfr1El1Mte

The value of ProcessorFeatureRegister1[11:8].

§Panics

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

Source

pub fn try_mte(&self) -> Result<IdAa64Pfr1El1Mte, InvalidBits<u8>>

Fallible variant of Self::mte.

Source

pub fn set_mte(&mut self, value: IdAa64Pfr1El1Mte) -> &mut Self

Sets the value of ProcessorFeatureRegister1[11:8].

Source

pub fn ssbs(&self) -> IdAa64Pfr1El1Ssbs

The value of ProcessorFeatureRegister1[7:4].

§Panics

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

Source

pub fn try_ssbs(&self) -> Result<IdAa64Pfr1El1Ssbs, InvalidBits<u8>>

Fallible variant of Self::ssbs.

Source

pub fn set_ssbs(&mut self, value: IdAa64Pfr1El1Ssbs) -> &mut Self

Sets the value of ProcessorFeatureRegister1[7:4].

Source

pub fn bt(&self) -> IdAa64Pfr1El1Bt

The value of ProcessorFeatureRegister1[3:0].

§Panics

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

Source

pub fn try_bt(&self) -> Result<IdAa64Pfr1El1Bt, InvalidBits<u8>>

Fallible variant of Self::bt.

Source

pub fn set_bt(&mut self, value: IdAa64Pfr1El1Bt) -> &mut Self

Sets the value of ProcessorFeatureRegister1[3:0].

Source§

impl ProcessorFeatureRegister1

Source

pub fn iter(&self) -> ProcessorFeatureRegister1Iter

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

Trait Implementations§

Source§

impl Binary for ProcessorFeatureRegister1

Source§

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

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

impl Clone for ProcessorFeatureRegister1

Source§

fn clone(&self) -> ProcessorFeatureRegister1

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 ProcessorFeatureRegister1

Source§

impl Debug for ProcessorFeatureRegister1

Source§

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

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

impl Default for ProcessorFeatureRegister1

Source§

fn default() -> Self

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

Source§

impl Eq for ProcessorFeatureRegister1

Source§

impl From<ProcessorFeatureRegister1> for u64

Source§

fn from(value: ProcessorFeatureRegister1) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for ProcessorFeatureRegister1

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for ProcessorFeatureRegister1

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = ProcessorFeatureRegister1Iter

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 ProcessorFeatureRegister1

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = ProcessorFeatureRegister1Iter

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 ProcessorFeatureRegister1

Source§

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

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

impl Octal for ProcessorFeatureRegister1

Source§

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

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

impl PartialEq for ProcessorFeatureRegister1

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ProcessorFeatureRegister1

Source§

impl UpperHex for ProcessorFeatureRegister1

Source§

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

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.