Skip to main content

InstructionSetAttributeRegister0

Struct InstructionSetAttributeRegister0 

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

The layout of ID_AA64ISAR0_EL1.

Implementations§

Source§

impl InstructionSetAttributeRegister0

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

Unshifted bitmask of rndr.

Source

pub const RNDR_SHIFT: usize = 60

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

Source

pub const TLB_MASK: u64

Unshifted bitmask of tlb.

Source

pub const TLB_SHIFT: usize = 56

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

Source

pub const TS_MASK: u64

Unshifted bitmask of ts.

Source

pub const TS_SHIFT: usize = 52

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

Source

pub const FHM_MASK: u64

Unshifted bitmask of fhm.

Source

pub const FHM_SHIFT: usize = 48

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

Source

pub const DP_MASK: u64

Unshifted bitmask of dp.

Source

pub const DP_SHIFT: usize = 44

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

Source

pub const SM4_MASK: u64

Unshifted bitmask of sm4.

Source

pub const SM4_SHIFT: usize = 40

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

Source

pub const SM3_MASK: u64

Unshifted bitmask of sm3.

Source

pub const SM3_SHIFT: usize = 36

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

Source

pub const SHA3_MASK: u64

Unshifted bitmask of sha3.

Source

pub const SHA3_SHIFT: usize = 32

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

Source

pub const RDM_MASK: u64

Unshifted bitmask of rdm.

Source

pub const RDM_SHIFT: usize = 28

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

Source

pub const ATOMIC_MASK: u64

Unshifted bitmask of atomic.

Source

pub const ATOMIC_SHIFT: usize = 20

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

Source

pub const CRC32_MASK: u64

Unshifted bitmask of crc32.

Source

pub const CRC32_SHIFT: usize = 16

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

Source

pub const SHA2_MASK: u64

Unshifted bitmask of sha2.

Source

pub const SHA2_SHIFT: usize = 12

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

Source

pub const SHA1_MASK: u64

Unshifted bitmask of sha1.

Source

pub const SHA1_SHIFT: usize = 8

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

Source

pub const AES_MASK: u64

Unshifted bitmask of aes.

Source

pub const AES_SHIFT: usize = 4

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

Source

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

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 rndr(&self) -> IdAa64IsaR0Rndr

The value of InstructionSetAttributeRegister0[63:60].

§Panics

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

Source

pub fn try_rndr(&self) -> Result<IdAa64IsaR0Rndr, InvalidBits<u8>>

Fallible variant of Self::rndr.

Source

pub fn set_rndr(&mut self, value: IdAa64IsaR0Rndr) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[63:60].

Source

pub fn tlb(&self) -> IdAa64IsaR0Tlb

The value of InstructionSetAttributeRegister0[59:56].

§Panics

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

Source

pub fn try_tlb(&self) -> Result<IdAa64IsaR0Tlb, InvalidBits<u8>>

Fallible variant of Self::tlb.

Source

pub fn set_tlb(&mut self, value: IdAa64IsaR0Tlb) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[59:56].

Source

pub fn ts(&self) -> IdAa64IsaR0Ts

The value of InstructionSetAttributeRegister0[55:52].

§Panics

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

Source

pub fn try_ts(&self) -> Result<IdAa64IsaR0Ts, InvalidBits<u8>>

Fallible variant of Self::ts.

Source

pub fn set_ts(&mut self, value: IdAa64IsaR0Ts) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[55:52].

Source

pub fn fhm(&self) -> IdAa64IsaR0Fhm

The value of InstructionSetAttributeRegister0[51:48].

§Panics

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

Source

pub fn try_fhm(&self) -> Result<IdAa64IsaR0Fhm, InvalidBits<u8>>

Fallible variant of Self::fhm.

Source

pub fn set_fhm(&mut self, value: IdAa64IsaR0Fhm) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[51:48].

Source

pub fn dp(&self) -> IdAa64IsaR0DotProd

The value of InstructionSetAttributeRegister0[47:44].

§Panics

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

Source

pub fn try_dp(&self) -> Result<IdAa64IsaR0DotProd, InvalidBits<u8>>

Fallible variant of Self::dp.

Source

pub fn set_dp(&mut self, value: IdAa64IsaR0DotProd) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[47:44].

Source

pub fn sm4(&self) -> IdAa64IsaR0Sm4

The value of InstructionSetAttributeRegister0[43:40].

§Panics

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

Source

pub fn try_sm4(&self) -> Result<IdAa64IsaR0Sm4, InvalidBits<u8>>

Fallible variant of Self::sm4.

Source

pub fn set_sm4(&mut self, value: IdAa64IsaR0Sm4) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[43:40].

Source

pub fn sm3(&self) -> IdAa64IsaR0Sm3

The value of InstructionSetAttributeRegister0[39:36].

§Panics

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

Source

pub fn try_sm3(&self) -> Result<IdAa64IsaR0Sm3, InvalidBits<u8>>

Fallible variant of Self::sm3.

Source

pub fn set_sm3(&mut self, value: IdAa64IsaR0Sm3) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[39:36].

Source

pub fn sha3(&self) -> IdAa64IsaR0Sha3

The value of InstructionSetAttributeRegister0[35:32].

§Panics

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

Source

pub fn try_sha3(&self) -> Result<IdAa64IsaR0Sha3, InvalidBits<u8>>

Fallible variant of Self::sha3.

Source

pub fn set_sha3(&mut self, value: IdAa64IsaR0Sha3) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[35:32].

Source

pub fn rdm(&self) -> IdAa64IsaR0Rdm

The value of InstructionSetAttributeRegister0[31:28].

§Panics

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

Source

pub fn try_rdm(&self) -> Result<IdAa64IsaR0Rdm, InvalidBits<u8>>

Fallible variant of Self::rdm.

Source

pub fn set_rdm(&mut self, value: IdAa64IsaR0Rdm) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[31:28].

Source

pub fn atomic(&self) -> IdAa64IsaR0Atomic

The value of InstructionSetAttributeRegister0[23:20].

§Panics

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

Source

pub fn try_atomic(&self) -> Result<IdAa64IsaR0Atomic, InvalidBits<u8>>

Fallible variant of Self::atomic.

Source

pub fn set_atomic(&mut self, value: IdAa64IsaR0Atomic) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[23:20].

Source

pub fn crc32(&self) -> IdAa64IsaR0Crc32

The value of InstructionSetAttributeRegister0[19:16].

§Panics

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

Source

pub fn try_crc32(&self) -> Result<IdAa64IsaR0Crc32, InvalidBits<u8>>

Fallible variant of Self::crc32.

Source

pub fn set_crc32(&mut self, value: IdAa64IsaR0Crc32) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[19:16].

Source

pub fn sha2(&self) -> IdAa64IsaR0Sha2

The value of InstructionSetAttributeRegister0[15:12].

§Panics

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

Source

pub fn try_sha2(&self) -> Result<IdAa64IsaR0Sha2, InvalidBits<u8>>

Fallible variant of Self::sha2.

Source

pub fn set_sha2(&mut self, value: IdAa64IsaR0Sha2) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[15:12].

Source

pub fn sha1(&self) -> IdAa64IsaR0Sha1

The value of InstructionSetAttributeRegister0[11:8].

§Panics

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

Source

pub fn try_sha1(&self) -> Result<IdAa64IsaR0Sha1, InvalidBits<u8>>

Fallible variant of Self::sha1.

Source

pub fn set_sha1(&mut self, value: IdAa64IsaR0Sha1) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[11:8].

Source

pub fn aes(&self) -> IdAa64IsaR0Aes

The value of InstructionSetAttributeRegister0[7:4].

§Panics

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

Source

pub fn try_aes(&self) -> Result<IdAa64IsaR0Aes, InvalidBits<u8>>

Fallible variant of Self::aes.

Source

pub fn set_aes(&mut self, value: IdAa64IsaR0Aes) -> &mut Self

Sets the value of InstructionSetAttributeRegister0[7:4].

Source§

impl InstructionSetAttributeRegister0

Source

pub fn iter(&self) -> InstructionSetAttributeRegister0Iter

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

Trait Implementations§

Source§

impl Binary for InstructionSetAttributeRegister0

Source§

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

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

impl Clone for InstructionSetAttributeRegister0

Source§

fn clone(&self) -> InstructionSetAttributeRegister0

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 InstructionSetAttributeRegister0

Source§

impl Debug for InstructionSetAttributeRegister0

Source§

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

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

impl Default for InstructionSetAttributeRegister0

Source§

fn default() -> Self

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

Source§

impl Eq for InstructionSetAttributeRegister0

Source§

impl From<InstructionSetAttributeRegister0> for u64

Source§

fn from(value: InstructionSetAttributeRegister0) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for InstructionSetAttributeRegister0

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for InstructionSetAttributeRegister0

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = InstructionSetAttributeRegister0Iter

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 InstructionSetAttributeRegister0

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = InstructionSetAttributeRegister0Iter

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 InstructionSetAttributeRegister0

Source§

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

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

impl Octal for InstructionSetAttributeRegister0

Source§

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

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

impl PartialEq for InstructionSetAttributeRegister0

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for InstructionSetAttributeRegister0

Source§

impl UpperHex for InstructionSetAttributeRegister0

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.