ckb_vm::machine

Trait Machine

Source
pub trait Machine: CoreMachine {
    // Required methods
    fn ecall(&mut self) -> Result<(), Error>;
    fn ebreak(&mut self) -> Result<(), Error>;
}
Expand description

This is the core trait describing a full RISC-V machine. Instruction package only needs to deal with the functions in this trait.

Required Methods§

Source

fn ecall(&mut self) -> Result<(), Error>

Source

fn ebreak(&mut self) -> Result<(), Error>

Implementors§