pub struct Cpsr64(/* private fields */);
Expand description
Aarch64 SPSR_EL2 register when in 64-bit mode. Usually called CPSR by hypervisors.
Implementations§
Source§impl Cpsr64
impl Cpsr64
Sourcepub const fn with_sp_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sp_checked(self, value: bool) -> Result<Self, ()>
PSTATE.SP
Bits: 0..1
Sourcepub const fn with_el_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_el_checked(self, value: u8) -> Result<Self, ()>
Exception Level
Bits: 2..4
Sourcepub const fn aa32(&self) -> bool
pub const fn aa32(&self) -> bool
Aarch32 mode. If set, this struct is the wrong one to interpret this register.
Bits: 4..5
Sourcepub const fn with_aa32_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_aa32_checked(self, value: bool) -> Result<Self, ()>
Aarch32 mode. If set, this struct is the wrong one to interpret this register.
Bits: 4..5
Sourcepub const fn with_aa32(self, value: bool) -> Self
pub const fn with_aa32(self, value: bool) -> Self
Aarch32 mode. If set, this struct is the wrong one to interpret this register.
Bits: 4..5
Sourcepub const fn set_aa32(&mut self, value: bool)
pub const fn set_aa32(&mut self, value: bool)
Aarch32 mode. If set, this struct is the wrong one to interpret this register.
Bits: 4..5
Sourcepub const fn set_aa32_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_aa32_checked(&mut self, value: bool) -> Result<(), ()>
Aarch32 mode. If set, this struct is the wrong one to interpret this register.
Bits: 4..5
Sourcepub const fn with_f_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_f_checked(self, value: bool) -> Result<Self, ()>
Bits: 6..7
Sourcepub const fn with_i_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_i_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_a_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_a_checked(self, value: bool) -> Result<Self, ()>
Bits: 8..9
Sourcepub const fn with_d_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_d_checked(self, value: bool) -> Result<Self, ()>
Bits: 9..10
Sourcepub const fn with_btype_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_btype_checked(self, value: u8) -> Result<Self, ()>
Bits: 10..12
Sourcepub const fn with_btype(self, value: u8) -> Self
pub const fn with_btype(self, value: u8) -> Self
Bits: 10..12
Sourcepub const fn with_ssbs_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ssbs_checked(self, value: bool) -> Result<Self, ()>
Bits: 12..13
Sourcepub const fn with_il_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_il_checked(self, value: bool) -> Result<Self, ()>
Bits: 20..21
Sourcepub const fn with_ss_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ss_checked(self, value: bool) -> Result<Self, ()>
Bits: 21..22
Sourcepub const fn with_pan_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_pan_checked(self, value: bool) -> Result<Self, ()>
Bits: 22..23
Sourcepub const fn with_uao_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_uao_checked(self, value: bool) -> Result<Self, ()>
Bits: 23..24
Sourcepub const fn with_dit_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_dit_checked(self, value: bool) -> Result<Self, ()>
Bits: 24..25
Sourcepub const fn with_tco_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_tco_checked(self, value: bool) -> Result<Self, ()>
Bits: 25..26
Sourcepub const fn with_v_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_v_checked(self, value: bool) -> Result<Self, ()>
Bits: 28..29
Sourcepub const fn with_c_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_c_checked(self, value: bool) -> Result<Self, ()>
Bits: 29..30
Sourcepub const fn with_z_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_z_checked(self, value: bool) -> Result<Self, ()>
Bits: 30..31
Sourcepub const fn with_n_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_n_checked(self, value: bool) -> Result<Self, ()>
Bits: 31..32
Sourcepub const fn with_res0_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_res0_checked(self, value: u32) -> Result<Self, ()>
Bits: 32..64