#[before_block_exec]Expand description
(Callback) Called before execution of every basic block.
Callback ID: PANDA_CB_BEFORE_BLOCK_EXEC
Arguments:
CPUState *env: the current CPU state
TranslationBlock *tb: the TB we are about to execute
Helper call location: cpu-exec.c
Return value:
noneCallback arguments: (&mut CPUState, &mut TranslationBlock, )
ยงExample
use panda::prelude::*;
#[panda::before_block_exec]
fn callback(_: &mut CPUState, _: &mut TranslationBlock, ) {
// do stuff
}