start_block_exec

Attribute Macro start_block_exec 

Source
#[start_block_exec]
Expand description

(Callback) Callback ID: PANDA_CB_START_BLOCK_EXEC

   start_block_exec:
    This is like before_block_exec except its part of the TCG stream.

   Arguments:
    CPUState *env:        the current CPU state
    TranslationBlock *tb: the TB we are executing

   Helper call location: cpu-exec.c

   Return value:
    none

Callback arguments: (&mut CPUState, &mut TranslationBlock, )

ยงExample

use panda::prelude::*;

#[panda::start_block_exec]
fn callback(_: &mut CPUState, _: &mut TranslationBlock, ) {
    // do stuff
}