Functions§
- elf_
memory_ image_ to_ openvm_ memory_ image - Converts our memory image (u32 -> [u8; 4]) into Vm memory image ((as, address) -> word)
- from_
b_ type - Create a new
Instruction
from a B-type instruction. - from_
i_ type - Create a new
Instruction
from an I-type instruction. Should only be used for ALU instructions becauseimm
is transpiled in a special way. - from_
i_ type_ shamt - Create a new
Instruction
from an I-type instruction with a shamt. It seems that shamt can only occur in SLLI, SRLI, SRAI. - from_
j_ type - Create a new
Instruction
from a J-type instruction. - from_
load - Create a new
Instruction
from a load operation - from_
r_ type - Create a new
Instruction
from an R-type instruction. - from_
s_ type - Create a new
Instruction
from an S-type instruction. - from_
u_ type - Create a new
Instruction
from a U-type instruction. - nop
- unimp
- Create a new
Instruction
that exits with code 2. This is equivalent to program panic but with a special exit code for debugging.