Skip to main content

InstructionSetAttributeRegister1

Struct InstructionSetAttributeRegister1 

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

The layout of ID_AA64ISAR1_EL1.

Implementations§

Source§

impl InstructionSetAttributeRegister1

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

Unshifted bitmask of ls64.

Source

pub const LS64_SHIFT: usize = 60

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

Source

pub const XS_MASK: u64

Unshifted bitmask of xs.

Source

pub const XS_SHIFT: usize = 56

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

Source

pub const I8MM_MASK: u64

Unshifted bitmask of i8mm.

Source

pub const I8MM_SHIFT: usize = 52

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

Source

pub const DGH_MASK: u64

Unshifted bitmask of dgh.

Source

pub const DGH_SHIFT: usize = 48

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

Source

pub const BF16_MASK: u64

Unshifted bitmask of bf16.

Source

pub const BF16_SHIFT: usize = 44

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

Source

pub const SPECRES_MASK: u64

Unshifted bitmask of specres.

Source

pub const SPECRES_SHIFT: usize = 40

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

Source

pub const SB_MASK: u64

Unshifted bitmask of sb.

Source

pub const SB_SHIFT: usize = 36

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

Source

pub const FRINTTS_MASK: u64

Unshifted bitmask of frintts.

Source

pub const FRINTTS_SHIFT: usize = 32

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

Source

pub const GPI_MASK: u64

Unshifted bitmask of gpi.

Source

pub const GPI_SHIFT: usize = 28

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

Source

pub const GPA_MASK: u64

Unshifted bitmask of gpa.

Source

pub const GPA_SHIFT: usize = 24

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

Source

pub const LRCPC_MASK: u64

Unshifted bitmask of lrcpc.

Source

pub const LRCPC_SHIFT: usize = 20

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

Source

pub const FCMA_MASK: u64

Unshifted bitmask of fcma.

Source

pub const FCMA_SHIFT: usize = 16

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

Source

pub const JSCVT_MASK: u64

Unshifted bitmask of jscvt.

Source

pub const JSCVT_SHIFT: usize = 12

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

Source

pub const API_MASK: u64

Unshifted bitmask of api.

Source

pub const API_SHIFT: usize = 8

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

Source

pub const APA_MASK: u64

Unshifted bitmask of apa.

Source

pub const APA_SHIFT: usize = 4

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

Source

pub const DPB_MASK: u64

Unshifted bitmask of dpb.

Source

pub const DPB_SHIFT: usize = 0

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

Source

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

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 ls64(&self) -> IdAa64IsaR1Ls64

The value of InstructionSetAttributeRegister1[63:60].

§Panics

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

Source

pub fn try_ls64(&self) -> Result<IdAa64IsaR1Ls64, InvalidBits<u8>>

Fallible variant of Self::ls64.

Source

pub fn set_ls64(&mut self, value: IdAa64IsaR1Ls64) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[63:60].

Source

pub fn xs(&self) -> IdAa64IsaR1Xs

The value of InstructionSetAttributeRegister1[59:56].

§Panics

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

Source

pub fn try_xs(&self) -> Result<IdAa64IsaR1Xs, InvalidBits<u8>>

Fallible variant of Self::xs.

Source

pub fn set_xs(&mut self, value: IdAa64IsaR1Xs) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[59:56].

Source

pub fn i8mm(&self) -> IdAa64IsaR1I8mm

The value of InstructionSetAttributeRegister1[55:52].

§Panics

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

Source

pub fn try_i8mm(&self) -> Result<IdAa64IsaR1I8mm, InvalidBits<u8>>

Fallible variant of Self::i8mm.

Source

pub fn set_i8mm(&mut self, value: IdAa64IsaR1I8mm) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[55:52].

Source

pub fn dgh(&self) -> IdAa64IsaR1Dgh

The value of InstructionSetAttributeRegister1[51:48].

§Panics

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

Source

pub fn try_dgh(&self) -> Result<IdAa64IsaR1Dgh, InvalidBits<u8>>

Fallible variant of Self::dgh.

Source

pub fn set_dgh(&mut self, value: IdAa64IsaR1Dgh) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[51:48].

Source

pub fn bf16(&self) -> IdAa64IsaR1Bf16

The value of InstructionSetAttributeRegister1[47:44].

§Panics

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

Source

pub fn try_bf16(&self) -> Result<IdAa64IsaR1Bf16, InvalidBits<u8>>

Fallible variant of Self::bf16.

Source

pub fn set_bf16(&mut self, value: IdAa64IsaR1Bf16) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[47:44].

Source

pub fn specres(&self) -> IdAa64IsaR1Specres

The value of InstructionSetAttributeRegister1[43:40].

§Panics

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

Source

pub fn try_specres(&self) -> Result<IdAa64IsaR1Specres, InvalidBits<u8>>

Fallible variant of Self::specres.

Source

pub fn set_specres(&mut self, value: IdAa64IsaR1Specres) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[43:40].

Source

pub fn sb(&self) -> IdAa64IsaR1Sb

The value of InstructionSetAttributeRegister1[39:36].

§Panics

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

Source

pub fn try_sb(&self) -> Result<IdAa64IsaR1Sb, InvalidBits<u8>>

Fallible variant of Self::sb.

Source

pub fn set_sb(&mut self, value: IdAa64IsaR1Sb) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[39:36].

Source

pub fn frintts(&self) -> IdAa64IsaR1Frintts

The value of InstructionSetAttributeRegister1[35:32].

§Panics

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

Source

pub fn try_frintts(&self) -> Result<IdAa64IsaR1Frintts, InvalidBits<u8>>

Fallible variant of Self::frintts.

Source

pub fn set_frintts(&mut self, value: IdAa64IsaR1Frintts) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[35:32].

Source

pub fn gpi(&self) -> IdAa64IsaR1Gpi

The value of InstructionSetAttributeRegister1[31:28].

§Panics

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

Source

pub fn try_gpi(&self) -> Result<IdAa64IsaR1Gpi, InvalidBits<u8>>

Fallible variant of Self::gpi.

Source

pub fn set_gpi(&mut self, value: IdAa64IsaR1Gpi) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[31:28].

Source

pub fn gpa(&self) -> IdAa64IsaR1Gpa

The value of InstructionSetAttributeRegister1[27:24].

§Panics

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

Source

pub fn try_gpa(&self) -> Result<IdAa64IsaR1Gpa, InvalidBits<u8>>

Fallible variant of Self::gpa.

Source

pub fn set_gpa(&mut self, value: IdAa64IsaR1Gpa) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[27:24].

Source

pub fn lrcpc(&self) -> IdAa64IsaR1Lrcpc

The value of InstructionSetAttributeRegister1[23:20].

§Panics

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

Source

pub fn try_lrcpc(&self) -> Result<IdAa64IsaR1Lrcpc, InvalidBits<u8>>

Fallible variant of Self::lrcpc.

Source

pub fn set_lrcpc(&mut self, value: IdAa64IsaR1Lrcpc) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[23:20].

Source

pub fn fcma(&self) -> IdAa64IsaR1Fcma

The value of InstructionSetAttributeRegister1[19:16].

§Panics

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

Source

pub fn try_fcma(&self) -> Result<IdAa64IsaR1Fcma, InvalidBits<u8>>

Fallible variant of Self::fcma.

Source

pub fn set_fcma(&mut self, value: IdAa64IsaR1Fcma) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[19:16].

Source

pub fn jscvt(&self) -> IdAa64IsaR1Jscvt

The value of InstructionSetAttributeRegister1[15:12].

§Panics

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

Source

pub fn try_jscvt(&self) -> Result<IdAa64IsaR1Jscvt, InvalidBits<u8>>

Fallible variant of Self::jscvt.

Source

pub fn set_jscvt(&mut self, value: IdAa64IsaR1Jscvt) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[15:12].

Source

pub fn api(&self) -> IdAa64IsaR1Pauth

The value of InstructionSetAttributeRegister1[11:8].

§Panics

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

Source

pub fn try_api(&self) -> Result<IdAa64IsaR1Pauth, InvalidBits<u8>>

Fallible variant of Self::api.

Source

pub fn set_api(&mut self, value: IdAa64IsaR1Pauth) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[11:8].

Source

pub fn apa(&self) -> IdAa64IsaR1Pauth

The value of InstructionSetAttributeRegister1[7:4].

§Panics

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

Source

pub fn try_apa(&self) -> Result<IdAa64IsaR1Pauth, InvalidBits<u8>>

Fallible variant of Self::apa.

Source

pub fn set_apa(&mut self, value: IdAa64IsaR1Pauth) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[7:4].

Source

pub fn dpb(&self) -> IdAa64IsaR1Dpb

The value of InstructionSetAttributeRegister1[3:0].

§Panics

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

Source

pub fn try_dpb(&self) -> Result<IdAa64IsaR1Dpb, InvalidBits<u8>>

Fallible variant of Self::dpb.

Source

pub fn set_dpb(&mut self, value: IdAa64IsaR1Dpb) -> &mut Self

Sets the value of InstructionSetAttributeRegister1[3:0].

Source§

impl InstructionSetAttributeRegister1

Source

pub fn iter(&self) -> InstructionSetAttributeRegister1Iter

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

Trait Implementations§

Source§

impl Binary for InstructionSetAttributeRegister1

Source§

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

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

impl Clone for InstructionSetAttributeRegister1

Source§

fn clone(&self) -> InstructionSetAttributeRegister1

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 InstructionSetAttributeRegister1

Source§

impl Debug for InstructionSetAttributeRegister1

Source§

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

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

impl Default for InstructionSetAttributeRegister1

Source§

fn default() -> Self

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

Source§

impl Eq for InstructionSetAttributeRegister1

Source§

impl From<InstructionSetAttributeRegister1> for u64

Source§

fn from(value: InstructionSetAttributeRegister1) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for InstructionSetAttributeRegister1

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for InstructionSetAttributeRegister1

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = InstructionSetAttributeRegister1Iter

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 InstructionSetAttributeRegister1

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = InstructionSetAttributeRegister1Iter

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 InstructionSetAttributeRegister1

Source§

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

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

impl Octal for InstructionSetAttributeRegister1

Source§

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

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

impl PartialEq for InstructionSetAttributeRegister1

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for InstructionSetAttributeRegister1

Source§

impl UpperHex for InstructionSetAttributeRegister1

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.