pub struct Registers<T> {
pub general_purpose: [T; 32],
pub current_instruction_pointer: T,
pub next_instruction_pointer: T,
pub heap_pointer: T,
}
Expand description
This represents the internal state of the virtual machine.
Fields§
§general_purpose: [T; 32]
There are 32 general purpose registers.
- x0: hard-wired zero
- x1: return address
- x2: stack pointer
- x3: global pointer
- x4: thread pointer
- x5: temporary/alternate register
- x6-x7: temporaries
- x8: saved register/frame pointer
- x9: saved register
- x10-x11: function arguments/results
- x12-x17: function arguments
- x18-x27: saved registers
- x28-x31: temporaries
current_instruction_pointer: T
§next_instruction_pointer: T
§heap_pointer: T
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Registers<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Registers<T>where T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for Registers<T>where T: RefUnwindSafe,
impl<T> Send for Registers<T>where T: Send,
impl<T> Sync for Registers<T>where T: Sync,
impl<T> Unpin for Registers<T>where T: Unpin,
impl<T> UnwindSafe for Registers<T>where T: UnwindSafe,
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