Skip to main content

Crate lifter

Crate lifter 

Source
Expand description

The lifter converts executable guest memory to NNIL so that the JIT stays architecture-neutral.

A lifter decodes guest instructions but does not run them. It converts each RISC-V operation to a small sequence of NNIL operations. The backend can then handle NNIL without knowledge of RISC-V bit fields.

Structs§

MemoryView
Restricts instruction fetches to the MMU execute-permission checks.

Enums§

RiscVArch
Selects the register width because decoding and word-result rules depend on XLEN.

Functions§

lift
Lifts a complete diagnostic byte slice from guest address zero.
lift_block
Lifts one control-flow region so that the runtime can compile code only when it is needed.