Skip to main content

InstructionSetAttributeRegister2

Struct InstructionSetAttributeRegister2 

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

The layout of ID_AA64ISAR2_EL1.

Implementations§

Source§

impl InstructionSetAttributeRegister2

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

Unshifted bitmask of ats1a.

Source

pub const ATS1A_SHIFT: usize = 60

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

Source

pub const LUT_MASK: u64

Unshifted bitmask of lut.

Source

pub const LUT_SHIFT: usize = 56

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

Source

pub const CSSC_MASK: u64

Unshifted bitmask of cssc.

Source

pub const CSSC_SHIFT: usize = 52

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

Source

pub const RPRFM_MASK: u64

Unshifted bitmask of rprfm.

Source

pub const RPRFM_SHIFT: usize = 48

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

Source

pub const PRFMSLC_MASK: u64

Unshifted bitmask of prfmslc.

Source

pub const PRFMSLC_SHIFT: usize = 40

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

Source

pub const SYSINSTR_128_MASK: u64

Unshifted bitmask of sysinstr_128.

Source

pub const SYSINSTR_128_SHIFT: usize = 36

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

Source

pub const SYSREG_128_MASK: u64

Unshifted bitmask of sysreg_128.

Source

pub const SYSREG_128_SHIFT: usize = 32

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

Source

pub const CLRBHB_MASK: u64

Unshifted bitmask of clrbhb.

Source

pub const CLRBHB_SHIFT: usize = 28

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

Source

pub const PAC_FRAC_MASK: u64

Unshifted bitmask of pac_frac.

Source

pub const PAC_FRAC_SHIFT: usize = 24

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

Source

pub const BC_MASK: u64

Unshifted bitmask of bc.

Source

pub const BC_SHIFT: usize = 20

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

Source

pub const MOPS_MASK: u64

Unshifted bitmask of mops.

Source

pub const MOPS_SHIFT: usize = 16

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

Source

pub const APA3_MASK: u64

Unshifted bitmask of apa3.

Source

pub const APA3_SHIFT: usize = 12

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

Source

pub const GPA3_MASK: u64

Unshifted bitmask of gpa3.

Source

pub const GPA3_SHIFT: usize = 8

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

Source

pub const RPRES_MASK: u64

Unshifted bitmask of rpres.

Source

pub const RPRES_SHIFT: usize = 4

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

Source

pub const WFXT_MASK: u64

Unshifted bitmask of wfxt.

Source

pub const WFXT_SHIFT: usize = 0

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

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 ats1a(&self) -> IdAa64IsaR2Ats1a

The value of InstructionSetAttributeRegister2[63:60].

§Panics

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

Source

pub fn try_ats1a(&self) -> Result<IdAa64IsaR2Ats1a, InvalidBits<u8>>

Fallible variant of Self::ats1a.

Source

pub fn set_ats1a(&mut self, value: IdAa64IsaR2Ats1a) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[63:60].

Source

pub fn lut(&self) -> IdAa64IsaR2Lut

The value of InstructionSetAttributeRegister2[59:56].

§Panics

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

Source

pub fn try_lut(&self) -> Result<IdAa64IsaR2Lut, InvalidBits<u8>>

Fallible variant of Self::lut.

Source

pub fn set_lut(&mut self, value: IdAa64IsaR2Lut) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[59:56].

Source

pub fn cssc(&self) -> IdAa64IsaR2Cssc

The value of InstructionSetAttributeRegister2[55:52].

§Panics

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

Source

pub fn try_cssc(&self) -> Result<IdAa64IsaR2Cssc, InvalidBits<u8>>

Fallible variant of Self::cssc.

Source

pub fn set_cssc(&mut self, value: IdAa64IsaR2Cssc) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[55:52].

Source

pub fn rprfm(&self) -> IdAa64IsaR2Rprfm

The value of InstructionSetAttributeRegister2[51:48].

§Panics

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

Source

pub fn try_rprfm(&self) -> Result<IdAa64IsaR2Rprfm, InvalidBits<u8>>

Fallible variant of Self::rprfm.

Source

pub fn set_rprfm(&mut self, value: IdAa64IsaR2Rprfm) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[51:48].

Source

pub fn prfmslc(&self) -> IdAa64IsaR2Prfmslc

The value of InstructionSetAttributeRegister2[43:40].

§Panics

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

Source

pub fn try_prfmslc(&self) -> Result<IdAa64IsaR2Prfmslc, InvalidBits<u8>>

Fallible variant of Self::prfmslc.

Source

pub fn set_prfmslc(&mut self, value: IdAa64IsaR2Prfmslc) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[43:40].

Source

pub fn sysinstr_128(&self) -> IdAa64IsaR2Sysinstr128

The value of InstructionSetAttributeRegister2[39:36].

§Panics

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

Source

pub fn try_sysinstr_128( &self, ) -> Result<IdAa64IsaR2Sysinstr128, InvalidBits<u8>>

Fallible variant of Self::sysinstr_128.

Source

pub fn set_sysinstr_128(&mut self, value: IdAa64IsaR2Sysinstr128) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[39:36].

Source

pub fn sysreg_128(&self) -> IdAa64IsaR2Sysreg128

The value of InstructionSetAttributeRegister2[35:32].

§Panics

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

Source

pub fn try_sysreg_128(&self) -> Result<IdAa64IsaR2Sysreg128, InvalidBits<u8>>

Fallible variant of Self::sysreg_128.

Source

pub fn set_sysreg_128(&mut self, value: IdAa64IsaR2Sysreg128) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[35:32].

Source

pub fn clrbhb(&self) -> IdAa64IsaR2Clrbhb

The value of InstructionSetAttributeRegister2[31:28].

§Panics

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

Source

pub fn try_clrbhb(&self) -> Result<IdAa64IsaR2Clrbhb, InvalidBits<u8>>

Fallible variant of Self::clrbhb.

Source

pub fn set_clrbhb(&mut self, value: IdAa64IsaR2Clrbhb) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[31:28].

Source

pub fn pac_frac(&self) -> IdAa64IsaR2PacFrac

The value of InstructionSetAttributeRegister2[27:24].

§Panics

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

Source

pub fn try_pac_frac(&self) -> Result<IdAa64IsaR2PacFrac, InvalidBits<u8>>

Fallible variant of Self::pac_frac.

Source

pub fn set_pac_frac(&mut self, value: IdAa64IsaR2PacFrac) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[27:24].

Source

pub fn bc(&self) -> IdAa64IsaR2Bc

The value of InstructionSetAttributeRegister2[23:20].

§Panics

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

Source

pub fn try_bc(&self) -> Result<IdAa64IsaR2Bc, InvalidBits<u8>>

Fallible variant of Self::bc.

Source

pub fn set_bc(&mut self, value: IdAa64IsaR2Bc) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[23:20].

Source

pub fn mops(&self) -> IdAa64IsaR2Mops

The value of InstructionSetAttributeRegister2[19:16].

§Panics

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

Source

pub fn try_mops(&self) -> Result<IdAa64IsaR2Mops, InvalidBits<u8>>

Fallible variant of Self::mops.

Source

pub fn set_mops(&mut self, value: IdAa64IsaR2Mops) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[19:16].

Source

pub fn apa3(&self) -> IdAa64IsaR2Apa3

The value of InstructionSetAttributeRegister2[15:12].

§Panics

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

Source

pub fn try_apa3(&self) -> Result<IdAa64IsaR2Apa3, InvalidBits<u8>>

Fallible variant of Self::apa3.

Source

pub fn set_apa3(&mut self, value: IdAa64IsaR2Apa3) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[15:12].

Source

pub fn gpa3(&self) -> IdAa64IsaR2Gpa3

The value of InstructionSetAttributeRegister2[11:8].

§Panics

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

Source

pub fn try_gpa3(&self) -> Result<IdAa64IsaR2Gpa3, InvalidBits<u8>>

Fallible variant of Self::gpa3.

Source

pub fn set_gpa3(&mut self, value: IdAa64IsaR2Gpa3) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[11:8].

Source

pub fn rpres(&self) -> IdAa64IsaR2Rpres

The value of InstructionSetAttributeRegister2[7:4].

§Panics

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

Source

pub fn try_rpres(&self) -> Result<IdAa64IsaR2Rpres, InvalidBits<u8>>

Fallible variant of Self::rpres.

Source

pub fn set_rpres(&mut self, value: IdAa64IsaR2Rpres) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[7:4].

Source

pub fn wfxt(&self) -> IdAa64IsaR2Wfxt

The value of InstructionSetAttributeRegister2[3:0].

§Panics

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

Source

pub fn try_wfxt(&self) -> Result<IdAa64IsaR2Wfxt, InvalidBits<u8>>

Fallible variant of Self::wfxt.

Source

pub fn set_wfxt(&mut self, value: IdAa64IsaR2Wfxt) -> &mut Self

Sets the value of InstructionSetAttributeRegister2[3:0].

Source§

impl InstructionSetAttributeRegister2

Source

pub fn iter(&self) -> InstructionSetAttributeRegister2Iter

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

Trait Implementations§

Source§

impl Binary for InstructionSetAttributeRegister2

Source§

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

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

impl Clone for InstructionSetAttributeRegister2

Source§

fn clone(&self) -> InstructionSetAttributeRegister2

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 InstructionSetAttributeRegister2

Source§

impl Debug for InstructionSetAttributeRegister2

Source§

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

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

impl Default for InstructionSetAttributeRegister2

Source§

fn default() -> Self

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

Source§

impl Eq for InstructionSetAttributeRegister2

Source§

impl From<InstructionSetAttributeRegister2> for u64

Source§

fn from(value: InstructionSetAttributeRegister2) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for InstructionSetAttributeRegister2

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for InstructionSetAttributeRegister2

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = InstructionSetAttributeRegister2Iter

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 InstructionSetAttributeRegister2

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = InstructionSetAttributeRegister2Iter

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 InstructionSetAttributeRegister2

Source§

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

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

impl Octal for InstructionSetAttributeRegister2

Source§

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

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

impl PartialEq for InstructionSetAttributeRegister2

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for InstructionSetAttributeRegister2

Source§

impl UpperHex for InstructionSetAttributeRegister2

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.