pub enum InternalRegister {
PC,
PSR,
MCR,
SavedSP,
}Expand description
A register which stores internal state in Simulator.
An internal register can be memory-mapped using Simulator::mmap_internal
and unmapped using Simulator::munmap_internal.
Variants§
PC
The program counter.
PSR
The processor status register.
MCR
Machine control register.
SavedSP
Saved stack pointer (USP in kernel, SSP in user).
Trait Implementations§
Source§impl Clone for InternalRegister
impl Clone for InternalRegister
Source§fn clone(&self) -> InternalRegister
fn clone(&self) -> InternalRegister
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InternalRegister
Source§impl Debug for InternalRegister
impl Debug for InternalRegister
impl Eq for InternalRegister
Source§impl PartialEq for InternalRegister
impl PartialEq for InternalRegister
Source§fn eq(&self, other: &InternalRegister) -> bool
fn eq(&self, other: &InternalRegister) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InternalRegister
Auto Trait Implementations§
impl Freeze for InternalRegister
impl RefUnwindSafe for InternalRegister
impl Send for InternalRegister
impl Sync for InternalRegister
impl Unpin for InternalRegister
impl UnsafeUnpin for InternalRegister
impl UnwindSafe for InternalRegister
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more