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
impl AsmCoreMachine
pub fn new(isa: u8, version: u32, max_cycles: u64) -> Box<AsmCoreMachine>
pub fn new_with_memory( isa: u8, version: u32, max_cycles: u64, memory_size: usize, ) -> Box<AsmCoreMachine>
Auto Trait Implementations§
impl Freeze for AsmCoreMachine
impl RefUnwindSafe for AsmCoreMachine
impl Send for AsmCoreMachine
impl Sync for AsmCoreMachine
impl Unpin for AsmCoreMachine
impl UnwindSafe for AsmCoreMachine
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