Struct ckb_vm_definitions::asm::AsmCoreMachine

source ·
#[repr(C)]
pub struct AsmCoreMachine {
Show 21 fields pub registers: [u64; 32], pub pc: u64, pub next_pc: u64, pub running: u8, pub cycles: u64, pub max_cycles: u64, pub chaos_mode: u8, pub chaos_seed: u32, pub load_reservation_address: u64, pub reset_signal: u8, pub isa: u8, pub version: u32, pub memory_size: u64, pub frames_size: u64, pub flags_size: u64, pub last_read_frame: u64, pub last_write_page: u64, pub flags: [u8; 1024], pub frames: [u8; 16], pub traces: [Trace; 8192], pub memory: [u8; 4194304],
}

Fields§

§registers: [u64; 32]§pc: u64§next_pc: u64§running: u8§cycles: u64§max_cycles: u64§chaos_mode: u8§chaos_seed: u32§load_reservation_address: u64§reset_signal: u8§isa: u8§version: u32§memory_size: u64§frames_size: u64§flags_size: u64§last_read_frame: u64§last_write_page: u64§flags: [u8; 1024]§frames: [u8; 16]§traces: [Trace; 8192]§memory: [u8; 4194304]

Implementations§

source§

impl AsmCoreMachine

source

pub fn new(isa: u8, version: u32, max_cycles: u64) -> Box<AsmCoreMachine>

source

pub fn new_with_memory( isa: u8, version: u32, max_cycles: u64, memory_size: usize, ) -> Box<AsmCoreMachine>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

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<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.