Skip to main content

MemoryModelFeatureRegister1

Struct MemoryModelFeatureRegister1 

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

The layout of ID_AA64MMFR1_EL1.

Implementations§

Source§

impl MemoryModelFeatureRegister1

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

Unshifted bitmask of cmow.

Source

pub const CMOW_SHIFT: usize = 56

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

Source

pub const TIDCP1_MASK: u64

Unshifted bitmask of tidcp1.

Source

pub const TIDCP1_SHIFT: usize = 52

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

Source

pub const NTLBPA_MASK: u64

Unshifted bitmask of ntlbpa.

Source

pub const NTLBPA_SHIFT: usize = 48

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

Source

pub const AFP_MASK: u64

Unshifted bitmask of afp.

Source

pub const AFP_SHIFT: usize = 44

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

Source

pub const HCX_MASK: u64

Unshifted bitmask of hcx.

Source

pub const HCX_SHIFT: usize = 40

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

Source

pub const ETS_MASK: u64

Unshifted bitmask of ets.

Source

pub const ETS_SHIFT: usize = 36

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

Source

pub const TWED_MASK: u64

Unshifted bitmask of twed.

Source

pub const TWED_SHIFT: usize = 32

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

Source

pub const XNX_MASK: u64

Unshifted bitmask of xnx.

Source

pub const XNX_SHIFT: usize = 28

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

Source

pub const SPEC_SEI_MASK: u64

Unshifted bitmask of spec_sei.

Source

pub const SPEC_SEI_SHIFT: usize = 24

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

Source

pub const PAN_MASK: u64

Unshifted bitmask of pan.

Source

pub const PAN_SHIFT: usize = 20

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

Source

pub const LO_MASK: u64

Unshifted bitmask of lo.

Source

pub const LO_SHIFT: usize = 16

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

Source

pub const HPDS_MASK: u64

Unshifted bitmask of hpds.

Source

pub const HPDS_SHIFT: usize = 12

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

Source

pub const VH_MASK: u64

Unshifted bitmask of vh.

Source

pub const VH_SHIFT: usize = 8

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

Source

pub const VMID_BITS_MASK: u64

Unshifted bitmask of vmid_bits.

Source

pub const VMID_BITS_SHIFT: usize = 4

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

Source

pub const HAFDBS_MASK: u64

Unshifted bitmask of hafdbs.

Source

pub const HAFDBS_SHIFT: usize = 0

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

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 const fn cmow(&self) -> u8

The value of MemoryModelFeatureRegister1[59:56].

Source

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

Sets the value of MemoryModelFeatureRegister1[59:56].

Source

pub const fn tidcp1(&self) -> u8

The value of MemoryModelFeatureRegister1[55:52].

Source

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

Sets the value of MemoryModelFeatureRegister1[55:52].

Source

pub const fn ntlbpa(&self) -> u8

The value of MemoryModelFeatureRegister1[51:48].

Source

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

Sets the value of MemoryModelFeatureRegister1[51:48].

Source

pub const fn afp(&self) -> u8

The value of MemoryModelFeatureRegister1[47:44].

Source

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

Sets the value of MemoryModelFeatureRegister1[47:44].

Source

pub const fn hcx(&self) -> u8

The value of MemoryModelFeatureRegister1[43:40].

Source

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

Sets the value of MemoryModelFeatureRegister1[43:40].

Source

pub const fn ets(&self) -> u8

The value of MemoryModelFeatureRegister1[39:36].

Source

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

Sets the value of MemoryModelFeatureRegister1[39:36].

Source

pub const fn twed(&self) -> u8

The value of MemoryModelFeatureRegister1[35:32].

Source

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

Sets the value of MemoryModelFeatureRegister1[35:32].

Source

pub const fn xnx(&self) -> u8

The value of MemoryModelFeatureRegister1[31:28].

Source

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

Sets the value of MemoryModelFeatureRegister1[31:28].

Source

pub const fn spec_sei(&self) -> u8

The value of MemoryModelFeatureRegister1[27:24].

Source

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

Sets the value of MemoryModelFeatureRegister1[27:24].

Source

pub const fn pan(&self) -> u8

The value of MemoryModelFeatureRegister1[23:20].

Source

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

Sets the value of MemoryModelFeatureRegister1[23:20].

Source

pub const fn lo(&self) -> u8

The value of MemoryModelFeatureRegister1[19:16].

Source

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

Sets the value of MemoryModelFeatureRegister1[19:16].

Source

pub const fn hpds(&self) -> u8

The value of MemoryModelFeatureRegister1[15:12].

Source

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

Sets the value of MemoryModelFeatureRegister1[15:12].

Source

pub const fn vh(&self) -> u8

The value of MemoryModelFeatureRegister1[11:8].

Source

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

Sets the value of MemoryModelFeatureRegister1[11:8].

Source

pub fn vmid_bits(&self) -> AsidSize

The value of MemoryModelFeatureRegister1[7:4].

§Panics

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

Source

pub fn try_vmid_bits(&self) -> Result<AsidSize, InvalidBits<u8>>

Fallible variant of Self::vmid_bits.

Source

pub fn set_vmid_bits(&mut self, value: AsidSize) -> &mut Self

Sets the value of MemoryModelFeatureRegister1[7:4].

Source

pub const fn hafdbs(&self) -> u8

The value of MemoryModelFeatureRegister1[3:0].

Source

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

Sets the value of MemoryModelFeatureRegister1[3:0].

Source§

impl MemoryModelFeatureRegister1

Source

pub fn iter(&self) -> MemoryModelFeatureRegister1Iter

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

Trait Implementations§

Source§

impl Binary for MemoryModelFeatureRegister1

Source§

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

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

impl Clone for MemoryModelFeatureRegister1

Source§

fn clone(&self) -> MemoryModelFeatureRegister1

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 MemoryModelFeatureRegister1

Source§

impl Debug for MemoryModelFeatureRegister1

Source§

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

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

impl Default for MemoryModelFeatureRegister1

Source§

fn default() -> Self

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

Source§

impl Eq for MemoryModelFeatureRegister1

Source§

impl From<MemoryModelFeatureRegister1> for u64

Source§

fn from(value: MemoryModelFeatureRegister1) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for MemoryModelFeatureRegister1

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for MemoryModelFeatureRegister1

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = MemoryModelFeatureRegister1Iter

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 MemoryModelFeatureRegister1

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = MemoryModelFeatureRegister1Iter

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 MemoryModelFeatureRegister1

Source§

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

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

impl Octal for MemoryModelFeatureRegister1

Source§

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

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

impl PartialEq for MemoryModelFeatureRegister1

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MemoryModelFeatureRegister1

Source§

impl UpperHex for MemoryModelFeatureRegister1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result
where AsidSize: 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.