Skip to main content

insert_interrupt

Function insert_interrupt 

Source
pub fn insert_interrupt(
    ctx: &mut Context<'static>,
    block: BlockId,
    before: Option<InstructionId>,
    address: Option<u64>,
    code: u64,
    args: &[ValueId],
) -> InstructionId
Expand description

Inserts vm.interrupt(code, args...) into block, before before or at the block’s start when before is None. The op declares no result and is stamped with guest address address, which is what the interrupt then reports as its pc. args are any values visible at that point.