Skip to main content

MemoryModelFeatureRegister0

Struct MemoryModelFeatureRegister0 

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

The layout of ID_AA64MMFR0_EL1.

Implementations§

Source§

impl MemoryModelFeatureRegister0

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

Unshifted bitmask of ecv.

Source

pub const ECV_SHIFT: usize = 60

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

Source

pub const FGT_MASK: u64

Unshifted bitmask of fgt.

Source

pub const FGT_SHIFT: usize = 56

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

Source

pub const EXS_MASK: u64

Unshifted bitmask of exs.

Source

pub const EXS_SHIFT: usize = 44

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

Source

pub const TGRAN4_2_MASK: u64

Unshifted bitmask of tgran4_2.

Source

pub const TGRAN4_2_SHIFT: usize = 40

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

Source

pub const TGRAN64_2_MASK: u64

Unshifted bitmask of tgran64_2.

Source

pub const TGRAN64_2_SHIFT: usize = 36

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

Source

pub const TGRAN16_2_MASK: u64

Unshifted bitmask of tgran16_2.

Source

pub const TGRAN16_2_SHIFT: usize = 32

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

Source

pub const TGRAN4_MASK: u64

Unshifted bitmask of tgran4.

Source

pub const TGRAN4_SHIFT: usize = 28

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

Source

pub const TGRAN64_MASK: u64

Unshifted bitmask of tgran64.

Source

pub const TGRAN64_SHIFT: usize = 24

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

Source

pub const TGRAN16_MASK: u64

Unshifted bitmask of tgran16.

Source

pub const TGRAN16_SHIFT: usize = 20

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

Source

pub const BIG_END_EL0_MASK: u64

Unshifted bitmask of big_end_el0.

Source

pub const BIG_END_EL0_SHIFT: usize = 16

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

Source

pub const SNS_MEM_MASK: u64

Unshifted bitmask of sns_mem.

Source

pub const SNS_MEM_SHIFT: usize = 12

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

Source

pub const BIG_END_MASK: u64

Unshifted bitmask of big_end.

Source

pub const BIG_END_SHIFT: usize = 8

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

Source

pub const ASID_BITS_MASK: u64

Unshifted bitmask of asid_bits.

Source

pub const ASID_BITS_SHIFT: usize = 4

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

Source

pub const PA_RANGE_MASK: u64

Unshifted bitmask of pa_range.

Source

pub const PA_RANGE_SHIFT: usize = 0

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

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

The value of MemoryModelFeatureRegister0[63:60].

Source

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

Sets the value of MemoryModelFeatureRegister0[63:60].

Source

pub const fn fgt(&self) -> u8

The value of MemoryModelFeatureRegister0[59:56].

Source

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

Sets the value of MemoryModelFeatureRegister0[59:56].

Source

pub const fn exs(&self) -> u8

The value of MemoryModelFeatureRegister0[47:44].

Source

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

Sets the value of MemoryModelFeatureRegister0[47:44].

Source

pub const fn tgran4_2(&self) -> u8

The value of MemoryModelFeatureRegister0[43:40].

Source

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

Sets the value of MemoryModelFeatureRegister0[43:40].

Source

pub const fn tgran64_2(&self) -> u8

The value of MemoryModelFeatureRegister0[39:36].

Source

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

Sets the value of MemoryModelFeatureRegister0[39:36].

Source

pub const fn tgran16_2(&self) -> u8

The value of MemoryModelFeatureRegister0[35:32].

Source

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

Sets the value of MemoryModelFeatureRegister0[35:32].

Source

pub const fn tgran4(&self) -> u8

The value of MemoryModelFeatureRegister0[31:28].

Source

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

Sets the value of MemoryModelFeatureRegister0[31:28].

Source

pub const fn tgran64(&self) -> u8

The value of MemoryModelFeatureRegister0[27:24].

Source

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

Sets the value of MemoryModelFeatureRegister0[27:24].

Source

pub const fn tgran16(&self) -> u8

The value of MemoryModelFeatureRegister0[23:20].

Source

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

Sets the value of MemoryModelFeatureRegister0[23:20].

Source

pub const fn big_end_el0(&self) -> u8

The value of MemoryModelFeatureRegister0[19:16].

Source

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

Sets the value of MemoryModelFeatureRegister0[19:16].

Source

pub const fn sns_mem(&self) -> u8

The value of MemoryModelFeatureRegister0[15:12].

Source

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

Sets the value of MemoryModelFeatureRegister0[15:12].

Source

pub const fn big_end(&self) -> u8

The value of MemoryModelFeatureRegister0[11:8].

Source

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

Sets the value of MemoryModelFeatureRegister0[11:8].

Source

pub fn asid_bits(&self) -> AsidSize

The value of MemoryModelFeatureRegister0[7:4].

§Panics

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

Source

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

Fallible variant of Self::asid_bits.

Source

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

Sets the value of MemoryModelFeatureRegister0[7:4].

Source

pub fn pa_range(&self) -> PhysicalAddressSize

The value of MemoryModelFeatureRegister0[3:0].

§Panics

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

Source

pub fn try_pa_range(&self) -> Result<PhysicalAddressSize, InvalidBits<u8>>

Fallible variant of Self::pa_range.

Source

pub fn set_pa_range(&mut self, value: PhysicalAddressSize) -> &mut Self

Sets the value of MemoryModelFeatureRegister0[3:0].

Source§

impl MemoryModelFeatureRegister0

Source

pub fn iter(&self) -> MemoryModelFeatureRegister0Iter

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

Trait Implementations§

Source§

impl Binary for MemoryModelFeatureRegister0

Source§

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

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

impl Clone for MemoryModelFeatureRegister0

Source§

fn clone(&self) -> MemoryModelFeatureRegister0

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 MemoryModelFeatureRegister0

Source§

impl Debug for MemoryModelFeatureRegister0

Source§

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

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

impl Default for MemoryModelFeatureRegister0

Source§

fn default() -> Self

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

Source§

impl Eq for MemoryModelFeatureRegister0

Source§

impl From<MemoryModelFeatureRegister0> for u64

Source§

fn from(value: MemoryModelFeatureRegister0) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for MemoryModelFeatureRegister0

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for MemoryModelFeatureRegister0

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = MemoryModelFeatureRegister0Iter

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 MemoryModelFeatureRegister0

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = MemoryModelFeatureRegister0Iter

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 MemoryModelFeatureRegister0

Source§

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

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

impl Octal for MemoryModelFeatureRegister0

Source§

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

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

impl PartialEq for MemoryModelFeatureRegister0

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MemoryModelFeatureRegister0

Source§

impl UpperHex for MemoryModelFeatureRegister0

Source§

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